/** * testView * * @return void */ public function testView() { $result = $this->Tag->view('cakephp'); $this->assertTrue(is_array($result)); $this->assertEquals($result['Tag']['keyname'], 'cakephp'); $this->expectException('CakeException'); $this->Tag->view('invalid-key!!!'); }