Skip to content

Commit

Permalink
Clean up unit tests [WEB-2646]
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiltri committed Aug 21, 2023
1 parent 9963f3e commit 255b20c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/Feature/HomePageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ public function test_home_page_loads()

public function test_visit_page_links_appear_on_home_page()
{
$appUrl = config('APP_URL');
$response = $this->get(route('home'));
$response->assertSee('Hours and admission fees');
$response->assertSee("href=\"{$appUrl}/visit#hours\"", false);
$response->assertSee("href=\"/visit#hours\"", false);
$response->assertSee('Directions and parking');
$response->assertSee("href=\"{$appUrl}/visit#directions\"", false);
$response->assertSee("href=\"/visit#directions\"", false);
}

public function test_events_section_appears_on_home_page()
Expand Down
1 change: 1 addition & 0 deletions tests/Feature/RobotsTxtTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function test_allow_traffic_when_production_request_to_same_host()
{
Config::set('app.env', 'production');
Config::set('app.debug', false);
Config::set('app.url', 'www-dev.artic.edu');

$response = $this->get(route('robots-txt'));
$this->assertNotEquals("User-agent: *\nDisallow: /", $response->getContent());
Expand Down

0 comments on commit 255b20c

Please sign in to comment.