Example #1
0
 public function testPartialTransactionFail()
 {
     $repository = new TestRepository();
     $repository->beginTransaction();
     $repository->save(['title' => 'test existing', 'seq' => 11]);
     $repository->rollback();
     $this->assertTrue($repository->count() == $this->count);
 }