'ff']); event(new Events\PluginBootFailed($plugin)); event(new Events\RenderingFooter($content)); $this->assertCount(0, $content); $this->actingAs(factory(User::class)->make()); event(new Events\PluginBootFailed($plugin)); event(new Events\RenderingFooter($content)); $this->assertCount(0, $content); $this->actingAs(factory(User::class)->states('admin')->make()); event(new Events\PluginBootFailed($plugin)); event(new Events\RenderingFooter($content)); $this->assertStringContainsString('blessing.notify.toast', $content[0]); } }