function VocabularySerializationTest::testSerialization
File
- 
              core/
modules/ taxonomy/ tests/ src/ Functional/ VocabularySerializationTest.php, line 42  
Class
- VocabularySerializationTest
 - Regression test for https://www.drupal.org/node/2807263.
 
Namespace
Drupal\Tests\taxonomy\FunctionalCode
public function testSerialization() : void {
  $this->drupalGet('/vocabulary_serialization_test/test');
  $this->assertSession()
    ->statusCodeEquals(200);
  $this->assertSame('this is the output', $this->getSession()
    ->getPage()
    ->getContent());
  $this->assertSession()
    ->responseHeaderEquals('X-Drupal-Cache', 'MISS');
  $this->drupalGet('/vocabulary_serialization_test/test');
  $this->assertSession()
    ->statusCodeEquals(200);
  $this->assertSame('this is the output', $this->getSession()
    ->getPage()
    ->getContent());
  $this->assertSession()
    ->responseHeaderEquals('X-Drupal-Cache', 'HIT');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.