public function testCellRendering() { $cell = $this->View->cell('Articles'); $this->assertEquals('display', $cell->template); // 2016-03-28: used trim() to remove LF. assert was failing on Windows. $this->assertEquals("articles cell display", trim($cell)); }
/** * tearDown method * * @return void */ public function testInitialize() { $this->View->initialize(); $this->assertEquals('BootstrapUI.default', $this->View->layout); }
/** * Initialization hook method. * * For e.g. use this method to load a helper for all views: * `$this->loadHelper('Html');` * * @return void */ public function initialize() { parent::initialize(); }