protected function LingotekTestBase::assertUploadedDataFieldCount in Lingotek Translation 8
Asserts if the uploaded data contains the expected number of fields.
Parameters
array $data: The uploaded data.
$count: The expected number of items.
Return value
bool TRUE if the assertion succeeded, FALSE otherwise.
32 calls to LingotekTestBase::assertUploadedDataFieldCount()
- LingotekContentTranslationDocumentUploadHookTest::testNodeTranslation in src/
Tests/ LingotekContentTranslationDocumentUploadHookTest.php - Tests that a node can be translated.
- LingotekContentTranslationPreSaveHookTest::testNodeTranslation in src/
Tests/ LingotekContentTranslationPreSaveHookTest.php - Tests that a node can be translated.
- LingotekNodeEmbeddingContactFormTranslationTest::testNodeTranslation in src/
Tests/ LingotekNodeEmbeddingContactFormTranslationTest.php - Tests that a node can be translated.
- LingotekNodeEmbeddingContactFormTranslationTest::testNodeTranslationWithADeletedReference in src/
Tests/ LingotekNodeEmbeddingContactFormTranslationTest.php - Tests that a node can be translated.
- LingotekNodeEmbeddingTagsTranslationTest::testNodeTranslation in src/
Tests/ LingotekNodeEmbeddingTagsTranslationTest.php - Tests that a node can be translated.
File
- src/
Tests/ LingotekTestBase.php, line 126
Class
- LingotekTestBase
- Base class for Lingotek test. Performs authorization of the account.
Namespace
Drupal\lingotek\TestsCode
protected function assertUploadedDataFieldCount(array $data, $count) {
// We have to add one item because of the metadata we include.
return $this
->assertEqual($count + 1, count($data));
}