forked from Yoast/wordpress-seo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-class-wpseo-breadcrumbs.php
47 lines (35 loc) · 1.19 KB
/
test-class-wpseo-breadcrumbs.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
class WPSEO_Breadcrumbs_Test extends WPSEO_UnitTestCase {
/**
* Placeholder test to prevent PHPUnit from throwing errors
*/
/*public function test_breadcrumb_home() {
// test for home breadcrumb
$expected = '<span prefix="v: http://rdf.data-vocabulary.org/#">
<span typeof="v:Breadcrumb"><span class="breadcrumb_last" property="v:title">Home</span></span>
</span>';
$output = WPSEO_Breadcrumbs::breadcrumb( '', '', false );
$this->assertSame( $expected, trim( $output ) );
// todo test actual breadcrumb output..
}*/
/**
* Placeholder test to prevent PHPUnit from throwing errors
*/
public function test_breadcrumb_before() {
// test before argument
$output = WPSEO_Breadcrumbs::breadcrumb( 'before', '', false );
$expected = 'before';
$this->assertStringStartsWith( $expected, $output );
// todo test actual breadcrumb output..
}
/**
* Placeholder test to prevent PHPUnit from throwing errors
*/
public function test_breadcrumb_after() {
// test after argument
$output = WPSEO_Breadcrumbs::breadcrumb( '', 'after', false );
$expected = 'after';
$this->assertStringEndsWith( $expected, $output );
// todo test actual breadcrumb output..
}
}