function testCustomControllerWhitelist()
 {
     $whitelist = WhitelistGenerator::generateWhitelistRules();
     //test that custom class defined below is included in the whitelist
     $this->assertContains('WhitelistTestController', $whitelist);
 }
 public function onAfterDelete()
 {
     if ($this->owner->getParentType() === 'root') {
         WhitelistGenerator::generateWhitelist();
     }
 }