protected function LingotekTestBase::assertUploadedDataFieldCount in Lingotek Translation 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
- 4.0.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
- 3.1.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
- 3.2.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
- 3.3.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
- 3.4.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
- 3.5.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
- 3.6.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
- 3.7.x tests/src/Functional/LingotekTestBase.php \Drupal\Tests\lingotek\Functional\LingotekTestBase::assertUploadedDataFieldCount()
- 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.
63 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
File
- tests/
src/ Functional/ LingotekTestBase.php, line 216
Class
- LingotekTestBase
- Base class for Lingotek test. Performs authorization of the account.
Namespace
Drupal\Tests\lingotek\FunctionalCode
protected function assertUploadedDataFieldCount(array $data, $count) {
// We have to add one item because of the metadata we include.
$this
->assertEqual($count + 1, count($data));
}