TinyAuth\Test\TestCase\Controller\Component\AuthUserHelperTest::testPostLinkValidNoEscape PHP Метод

testPostLinkValidNoEscape() публичный Метод

public testPostLinkValidNoEscape ( ) : void
Результат void
    public function testPostLinkValidNoEscape()
    {
        $user = ['id' => 1, 'role_id' => 3];
        $this->View->set('_authUser', $user);
        $url = ['controller' => 'Tags', 'action' => 'delete'];
        $result = $this->AuthUserHelper->postLink('Delete <b>Me</b>', $url, ['escape' => false]);
        $this->assertContains('<form name=', $result);
        $this->assertContains('>Delete <b>Me</b></a>', $result);
    }