/** * testView * * @return void * @access public */ public function testView() { $result = $this->GlobalTag->getViewData('cakephp'); $this->assertInternalType('array', $result); $expected = 'cakephp'; $this->assertEquals($expected, $result['GlobalTag']['keyname']); $result = $this->GlobalTag->getViewData('invalid-key!!!'); $this->assertEmpty($result); }