Esempio n. 1
0
 public function test__delete_all()
 {
     //$idArr = [];
     $this->__init();
     for ($i = 1; $i < 10; $i++) {
         $data = ['title' => 'title_' . $i, 'price' => 100 * $i];
         //$idArr[] = $this->object->create($data)['id'];
     }
     $this->object->deleteAll();
     $result = $this->object->query(new Query());
     $this->assertEquals(true, empty($result));
 }