drupalGet('admin/structure/views/view/sa_contrib_2013_035'); $this->assertEscaped('test', 'Field admin label is properly escaped.'); $this->drupalGet('admin/structure/views/nojs/handler/sa_contrib_2013_035/page_1/header/area'); $this->assertEscaped('{{ title }} == test', 'Token label is properly escaped.'); $this->assertEscaped('{{ title_1 }} == ', 'Token label is properly escaped.'); } /** * Checks the admin UI for double escaping. */ public function testNoDoubleEscaping() { $this->drupalGet('admin/structure/views'); $this->assertNoEscaped('<'); $this->drupalGet('admin/structure/views/view/sa_contrib_2013_035'); $this->assertNoEscaped('<'); $this->drupalGet('admin/structure/views/nojs/handler/sa_contrib_2013_035/page_1/header/area'); $this->assertNoEscaped('<'); } }