You are here

protected function LingotekTestBase::assertUploadedDataFieldCount in Lingotek Translation 3.6.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
  2. 4.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
  3. 3.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
  4. 3.1.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
  5. 3.2.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
  6. 3.3.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
  7. 3.4.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
  8. 3.5.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
  9. 3.7.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
  10. 3.8.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()

Asserts if the uploaded data contains the expected number of fields.

Parameters

array $data: The uploaded data.

$count: The expected number of items.

73 calls to LingotekTestBase::assertUploadedDataFieldCount()
LingotekContentEntityGetProfileHookTest::testProfileOverrideOnUploadTranslation in tests/src/Functional/LingotekContentEntityGetProfileHookTest.php
Tests that a profile can be overridden before uploading.
LingotekContentTranslationDocumentUploadHookTest::testNodeTranslation in tests/src/Functional/LingotekContentTranslationDocumentUploadHookTest.php
Tests that a node can be translated.
LingotekContentTranslationPreSaveHookTest::testNodeTranslation in tests/src/Functional/LingotekContentTranslationPreSaveHookTest.php
Tests that a node can be translated.
LingotekIntelligenceMetadataTranslationTest::testUpdateNodeWithContactEmailAsAuthorSetting in tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php
LingotekIntelligenceMetadataTranslationTest::testUpdateNodeWithDefaultSettings in tests/src/Functional/LingotekIntelligenceMetadataTranslationTest.php

... See full list

File

tests/src/Functional/LingotekTestBase.php, line 221

Class

LingotekTestBase
Base class for Lingotek test. Performs authorization of the account.

Namespace

Drupal\Tests\lingotek\Functional

Code

protected function assertUploadedDataFieldCount(array $data, $count) {

  // We have to add one item because of the metadata we include.
  $this
    ->assertEqual($count + 1, count($data));
}