/** * testBehaviorMethodDispatchingWithData method * * @return void */ public function testBehaviorMethodDispatchingWithData() { $Apple = new Restaurant(); $Apple->Behaviors->load('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')); }