Пример #1
0
 public function testBaseMethods()
 {
     $source = new MockSource(array('autoConnect' => true));
     $name = '{(\'Li\':"∆")}';
     $this->assertEqual($name, $source->name($name));
     $this->assertFalse($source->configureClass('Foo'));
 }
Пример #2
0
 public function testBaseMethods()
 {
     $source = new MockSource(array('autoConnect' => true));
     $name = '{(\'Li\':"∆")}';
     $this->assertEqual($name, $source->name($name));
     $expected = array('meta' => array('locked' => true, 'key' => 'id'));
     $this->assertEqual($expected, $source->configureClass('Foo'));
 }
Пример #3
0
 public function testBaseMethods()
 {
     $source = new MockSource(array('autoConnect' => true));
     $name = '{(\'Li\':"∆")}';
     $this->assertEqual($name, $source->name($name));
     $expected = array('classes' => array('entity' => 'lithium\\data\\entity\\Record', 'set' => 'lithium\\data\\collection\\RecordSet', 'relationship' => 'lithium\\data\\model\\Relationship', 'schema' => 'lithium\\data\\Schema'), 'meta' => array('locked' => true, 'key' => 'id'));
     $this->assertEqual($expected, $source->configureClass('Foo'));
 }