Esempio n. 1
0
 public function testLazyLoad()
 {
     $object = MockPost::invokeMethod('_object');
     $object->belongsTo = array('Unexisting');
     MockPost::config();
     MockPost::invokeMethod('_initialize', array('lithium\\tests\\mocks\\data\\MockPost'));
     $exception = 'Related model class \'lithium\\tests\\mocks\\data\\Unexisting\' not found.';
     $this->expectException($exception);
     MockPost::relations('Unexisting');
 }