assertArrayNotHasKey('customNotificationType', Notification::getSubjectModels()); } /** * @test */ public function notification_type_exists_if_added() { $this->extend((new Extend\Notification)->type( CustomNotificationType::class, 'customNotificationTypeSerializer' )); $this->app(); $this->assertArrayHasKey('customNotificationType', Notification::getSubjectModels()); } } class CustomNotificationType implements BlueprintInterface { public function getFromUser() { // ... } public function getSubject() { // ... } public function getData() { // ... } public static function getType() { return 'customNotificationType'; } public static function getSubjectModel() { return 'customNotificationTypeSubjectModel'; } }