Beispiel #1
0
 /**
  * @depends testBootstrap
  */
 public function testModelCreateEmpty()
 {
     $this->handleDebug(__FUNCTION__);
     $assert = [];
     $log = Enjoin::logify(function () use(&$assert) {
         $assert[] = Enjoin::get('Languages')->create()->id;
         $assert[] = Enjoin::get('Languages')->create([])->id;
     });
     $assert[] = $log[0];
     $this->assertEquals([1, 2, $this->getCompareSql(__FUNCTION__)], $assert);
 }