Skip to content

Commit

Permalink
Adjust tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Jun 21, 2015
1 parent 6e5381a commit fc57e43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Network/Email/CakeEmailTest.php
Expand Up @@ -1570,7 +1570,7 @@ public function testSendRenderWithImage() {
$server .= ':' . env('SERVER_PORT');
}

$expected = '<img src="http://' . $server . '/img/image.gif" alt="cool image" width="100" height="100" />';
$expected = '<img src="http://' . $server . '/img/image.gif" alt="cool image" width="100" height="100"/>';
$result = $this->CakeEmail->send();
$this->assertContains($expected, $result['message']);
}
Expand Down
1 change: 0 additions & 1 deletion lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
Expand Up @@ -1755,7 +1755,6 @@ public function testMeta() {

$result = $this->Html->meta('keywords', 'these, are, some, meta, keywords');
$this->assertTags($result, array('meta' => array('name' => 'keywords', 'content' => 'these, are, some, meta, keywords')));
$this->assertRegExp('/\s+\/>$/', $result);

$result = $this->Html->meta('description', 'this is the meta description');
$this->assertTags($result, array('meta' => array('name' => 'description', 'content' => 'this is the meta description')));
Expand Down
10 changes: 5 additions & 5 deletions lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php
Expand Up @@ -2857,7 +2857,7 @@ public function testMetaPage1() {
'paramType' => 'querystring'
)
);
$expected = '<link href="/?page=2" rel="next" />';
$expected = '<link href="/?page=2" rel="next"/>';
$result = $this->Paginator->meta();
$this->assertSame($expected, $result);
}
Expand All @@ -2878,7 +2878,7 @@ public function testMetaPage1InlineFalse() {
'paramType' => 'querystring'
)
);
$expected = '<link href="/?page=2" rel="next" />';
$expected = '<link href="/?page=2" rel="next"/>';
$this->Paginator->meta(array('block' => true));
$result = $this->View->fetch('meta');
$this->assertSame($expected, $result);
Expand All @@ -2900,7 +2900,7 @@ public function testMetaPage1Last() {
'paramType' => 'querystring'
)
);
$expected = '<link href="/" rel="prev" />';
$expected = '<link href="/" rel="prev"/>';
$result = $this->Paginator->meta();
$this->assertSame($expected, $result);
}
Expand All @@ -2921,8 +2921,8 @@ public function testMetaPage10Last() {
'paramType' => 'querystring'
)
);
$expected = '<link href="/?page=4" rel="prev" />';
$expected .= '<link href="/?page=6" rel="next" />';
$expected = '<link href="/?page=4" rel="prev"/>';
$expected .= '<link href="/?page=6" rel="next"/>';
$result = $this->Paginator->meta();
$this->assertSame($expected, $result);
}
Expand Down

0 comments on commit fc57e43

Please sign in to comment.