You are here

public function LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor in Lingotek Translation 3.6.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
  2. 4.0.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
  3. 3.0.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
  4. 3.1.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
  5. 3.2.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
  6. 3.3.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
  7. 3.4.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
  8. 3.5.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
  9. 3.7.x tests/src/Functional/LingotekEntityTestBulkTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekEntityTestBulkTranslationTest::testUploadingWithoutAuthor()
  10. 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\Functional

Code

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');
}