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); }
protected function tearDown() { Topic::deleteAll(); Promptr::deleteAll(); Question::deleteAll(); }