예제 #1
0
파일: CrudTest.php 프로젝트: szytko/core
 public function testDelete()
 {
     $this->model = FakeModel::findFirst();
     $this->request()->setRequestMethod('GET');
     $this->handleUri('/test/crud/delete/' . $this->model->getId());
     $this->model = FakeModel::findById($this->model->getId());
     $this->assertFalse($this->model);
 }
예제 #2
0
파일: MysqlTest.php 프로젝트: arius86/core
 public function tearDown()
 {
     foreach (\Test\Models\Fake::find() as $r) {
         $r->delete();
     }
 }