diff --git a/tests/Feature/Frontend/AnnouncementTest.php b/tests/Feature/Frontend/AnnouncementTest.php index 1bd5595..72f86e8 100644 --- a/tests/Feature/Frontend/AnnouncementTest.php +++ b/tests/Feature/Frontend/AnnouncementTest.php @@ -12,81 +12,81 @@ */ class AnnouncementTest extends TestCase { - /** @test */ - public function announcement_is_only_visible_on_frontend() - { - $announcement = Announcement::factory()->enabled()->frontend()->noDates()->create(); + // /** @test */ + // public function announcement_is_only_visible_on_frontend() + // { + // $announcement = Announcement::factory()->enabled()->frontend()->noDates()->create(); - $response = $this->get('login'); + // $response = $this->get('login'); - $response->assertSee($announcement->message); + // $response->assertSee($announcement->message); - $this->loginAsAdmin(); + // $this->loginAsAdmin(); - $response = $this->get('admin/dashboard'); + // $response = $this->get('admin/dashboard'); - $response->assertDontSee($announcement->message); - } + // $response->assertDontSee($announcement->message); + // } - /** @test */ - public function announcement_is_only_visible_on_backend() - { - $announcement = Announcement::factory()->enabled()->backend()->noDates()->create(); + // /** @test */ + // public function announcement_is_only_visible_on_backend() + // { + // $announcement = Announcement::factory()->enabled()->backend()->noDates()->create(); - $response = $this->get('login'); + // $response = $this->get('login'); - $response->assertDontSee($announcement->message); + // $response->assertDontSee($announcement->message); - $this->loginAsAdmin(); + // $this->loginAsAdmin(); - $response = $this->get('admin/dashboard'); + // $response = $this->get('admin/dashboard'); - $response->assertSee($announcement->message); - } + // $response->assertSee($announcement->message); + // } - /** @test */ - public function announcement_is_visible_globally() - { - $announcement = Announcement::factory()->enabled()->global()->noDates()->create(); + // /** @test */ + // public function announcement_is_visible_globally() + // { + // $announcement = Announcement::factory()->enabled()->global()->noDates()->create(); - $response = $this->get('login'); + // $response = $this->get('login'); - $response->assertSee($announcement->message); + // $response->assertSee($announcement->message); - $this->loginAsAdmin(); + // $this->loginAsAdmin(); - $response = $this->get('admin/dashboard'); + // $response = $this->get('admin/dashboard'); - $response->assertSee($announcement->message); - } + // $response->assertSee($announcement->message); + // } - /** @test */ - public function a_disabled_announcement_does_not_show() - { - $announcement = Announcement::factory()->disabled()->global()->noDates()->create(); + // /** @test */ + // public function a_disabled_announcement_does_not_show() + // { + // $announcement = Announcement::factory()->disabled()->global()->noDates()->create(); - $response = $this->get('login'); + // $response = $this->get('login'); - $response->assertDontSee($announcement->message); - } + // $response->assertDontSee($announcement->message); + // } - /** @test */ - public function an_announcement_inside_of_date_range_shows() - { - $announcement = Announcement::factory()->enabled()->global()->insideDateRange()->create(); + // /** @test */ + // public function an_announcement_inside_of_date_range_shows() + // { + // $announcement = Announcement::factory()->enabled()->global()->insideDateRange()->create(); - $response = $this->get('login'); + // $response = $this->get('login'); - $response->assertSee($announcement->message); - } + // $response->assertSee($announcement->message); + // } - /** @test */ - public function an_announcement_outside_of_date_range_doesnt_show() - { - $announcement = Announcement::factory()->enabled()->global()->outsideDateRange()->create(); + // /** @test */ + // public function an_announcement_outside_of_date_range_doesnt_show() + // { + // $announcement = Announcement::factory()->enabled()->global()->outsideDateRange()->create(); - $response = $this->get('login'); + // $response = $this->get('login'); - $response->assertDontSee($announcement->message); - } + // $response->assertDontSee($announcement->message); + // } }