public function LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor in Lingotek Translation 3.4.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
- 4.0.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
- 3.0.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
- 3.1.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
- 3.2.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
- 3.3.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
- 3.5.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
- 3.6.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
- 3.7.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
- 3.8.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
Tests that a entity without owner gets uploaded correctly.
File
- tests/
src/ Functional/ LingotekEntityTestBulkTranslationTest.php, line 332
Class
- LingotekEntityTestBulkTranslationTest
- Tests translating the entity test using the bulk management form.
Namespace
Drupal\Tests\lingotek\FunctionalCode
public function testUploadingWithoutAuthor() {
$entity = EntityTestMul::create([
'type' => 'entity_test_mul',
'name' => 'Test article',
]);
$entity
->setOwnerId(NULL);
$entity
->save();
$this
->assertNull($entity
->getOwner());
$this
->drupalGet('/entity_test_mul/manage/1');
}