Exemplo n.º 1
0
 public function testPresave()
 {
     $user = new Pupil();
     $user->name = "michael";
     $user->save();
     $this->assertEquals("ohohoh", $user->pre_save_data);
 }
Exemplo n.º 2
0
 public function testDrop()
 {
     $pupil = Pupil::one();
     $this->assertNotEmpty($pupil);
     Pupil::drop();
     $pupil = Pupil::one();
     $this->assertEmpty($pupil);
 }