Beispiel #1
0
 function testDeleteAll()
 {
     $promptr1_name = "mikes 5 tips";
     $topic_id = 20;
     $test_promptr = new Promptr($promptr1_name, $topic_id);
     $test_promptr->save();
     $promptr2_name = "ians 5 tips";
     $topic_id = 20;
     $test_promptr2 = new Promptr($promptr2_name, $topic_id);
     $test_promptr2->save();
     Promptr::deleteAll();
     $result = Promptr::getAll();
     $this->assertEquals([], $result);
 }
Beispiel #2
0
 protected function tearDown()
 {
     Topic::deleteAll();
     Promptr::deleteAll();
 }