/** * testBehaviorMethodDispatchingWithData method * * @return void */ public function testBehaviorMethodDispatchingWithData() { $Apple = new Apple(); $Apple->Behaviors->attach('Test'); $Apple->set('field', 'value'); $this->assertTrue($Apple->testData()); $this->assertTrue($Apple->data['Apple']['field_2']); $this->assertTrue($Apple->testData('one', 'two', 'three', 'four', 'five', 'six')); }
/** * testBehaviorMethodDispatchingWithData method * * @access public * @return void */ function testBehaviorMethodDispatchingWithData() { $Apple = new Apple(); $Apple->Behaviors->attach('Test'); $Apple->set('field', 'value'); $this->assertTrue($Apple->testData()); $this->assertTrue($Apple->data['Apple']['field_2']); }