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