Skip to content
Permalink
Browse files

Adjust tests.

  • Loading branch information...
dereuromark committed Jun 21, 2015
1 parent 6e5381a commit fc57e43a5b2994bd5b482009676bbd28331a4488
@@ -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']);
}
@@ -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')));
@@ -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);
}
@@ -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);
@@ -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);
}
@@ -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);
}

0 comments on commit fc57e43

Please sign in to comment.
You can’t perform that action at this time.