You are here

public function JsonLogDataTest::testSiteTagsCanBeEmpty in JSONlog 8.2

Same name and namespace in other branches
  1. 8 tests/src/Unit/JsonLogDataTest.php \Drupal\Tests\jsonlog\Unit\JsonLogDataTest::testSiteTagsCanBeEmpty()
  2. 3.x tests/src/Unit/JsonLogDataTest.php \Drupal\Tests\jsonlog\Unit\JsonLogDataTest::testSiteTagsCanBeEmpty()

File

tests/src/Unit/JsonLogDataTest.php, line 249

Class

JsonLogDataTest
Unit tests for JsonLogData class

Namespace

Drupal\Tests\jsonlog\Unit

Code

public function testSiteTagsCanBeEmpty() {
  $this->data = new JsonLogData('test_site_id', 'test_canonical');
  $this->data
    ->setTags('', '');
  $this
    ->assertNull($this->data
    ->getTags(), 'No tags available.');
}