Esempio n. 1
0
 public function testLoadKohanaScheme()
 {
     $scheme = new AetherORMScheme('foo', $this->kohanaScheme);
     $foo = $scheme->getObject();
     $this->assertTrue($foo->hasField('title'));
     $this->assertTrue($foo->getField('title') instanceof AetherORMStringField);
 }
Esempio n. 2
0
 public function testTable()
 {
     AetherORM::$_config = $this->config;
     $scheme = new AetherORMScheme('foo', $this->schemeResult);
     $resource = $scheme->getObject();
     $db = 'd';
     $tbl = 'foo';
     $table = new AetherORMTable($resource, $db, $tbl);
     // Forced count, fails because loaded without configinfo
     $cnt = $table->count();
     $this->assertGreaterThan(1, $cnt);
 }