Skip to content

Commit

Permalink
Follow the standard to use this instead of self
Browse files Browse the repository at this point in the history
  • Loading branch information
carakas committed Jul 23, 2018
1 parent 8003568 commit 1cc1c81
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/Frontend/Modules/Tags/Tests/Actions/DetailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,29 @@ public function testTagsHaveDetailPage(): void
);

$crawler = $client->request('GET', '/en/tags');
self::assertEquals(
$this->assertEquals(
200,
$client->getResponse()->getStatusCode()
);

$link = $crawler->selectLink('most used')->link();
$crawler = $client->click($link);

self::assertEquals(
$this->assertEquals(
200,
$client->getResponse()->getStatusCode()
);
self::assertStringEndsWith(
$this->assertStringEndsWith(
'/en/tags/detail/most-used',
$client->getHistory()->current()->getUri()
);
self::assertStringStartsWith(
$this->assertStringStartsWith(
'Tags',
$crawler->filter('title')->text()
);
self::assertContains('<a href="/en/tags" title="To tags overview">', $crawler->html());
self::assertContains('<h2>Pages</h2>', $crawler->html());
self::assertContains('<a href="/en/sitemap" rel="tag">', $crawler->html());
$this->assertContains('<a href="/en/tags" title="To tags overview">', $crawler->html());
$this->assertContains('<h2>Pages</h2>', $crawler->html());
$this->assertContains('<a href="/en/sitemap" rel="tag">', $crawler->html());
}

public function testNonExistingFaqGives404(): void
Expand Down
8 changes: 4 additions & 4 deletions src/Frontend/Modules/Tags/Tests/Actions/IndexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ public function testTagsIndexShowsTags(): void
);

$client->request('GET', '/en/tags');
self::assertEquals(
$this->assertEquals(
200,
$client->getResponse()->getStatusCode()
);
self::assertContains(
$this->assertContains(
'<a href="/en/tags/detail/most-used" rel="tag">',
$client->getResponse()->getContent()
);
self::assertContains(
$this->assertContains(
'most used',
$client->getResponse()->getContent()
);
self::assertContains(
$this->assertContains(
'<span class="badge hidden-phone">6</span>',
$client->getResponse()->getContent()
);
Expand Down

0 comments on commit 1cc1c81

Please sign in to comment.