public function testPostLinkInvalid() { $user = ['id' => 1, 'role_id' => 1]; $this->View->set('_authUser', $user); $url = ['controller' => 'Tags', 'action' => 'delete']; $result = $this->AuthUserHelper->postLink('Delete <b>Me</b>', $url, ['default' => 'Foo']); $this->assertSame('Foo', $result); }