예제 #1
0
 function test_deleteAll()
 {
     $name = "Writing";
     $test_topic = new Topic($name);
     $test_topic->save();
     $name2 = "Interview";
     $test_topic2 = new Topic($name2);
     $test_topic2->save();
     Topic::deleteAll();
     $result = Topic::getAll();
     $this->assertEquals([], $result);
 }
예제 #2
0
 protected function tearDown()
 {
     Topic::deleteAll();
     Promptr::deleteAll();
     Question::deleteAll();
 }