'test'])->save(); } public function testSerialization() { $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'); } }