| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | /** |
|---|
| 4 | * |
|---|
| 5 | */ |
|---|
| 6 | class ClassName extends WP_UnitTestCase { |
|---|
| 7 | |
|---|
| 8 | function test_is_parent_theme_file_uri(){ |
|---|
| 9 | |
|---|
| 10 | $actual = parent_theme_file_uri(); |
|---|
| 11 | $expected = 'http://localhost/wp-content/themes/twentyfifteen'; |
|---|
| 12 | |
|---|
| 13 | $this->assertEquals($actual,$expected); |
|---|
| 14 | } |
|---|
| 15 | |
|---|
| 16 | function test_is_theme_file_uri(){ |
|---|
| 17 | |
|---|
| 18 | $actual = theme_file_uri(); |
|---|
| 19 | $expected = 'http://localhost/wp-content/themes/twentyfifteen'; |
|---|
| 20 | |
|---|
| 21 | $this->assertEquals($actual,$expected); |
|---|
| 22 | } |
|---|
| 23 | |
|---|
| 24 | function test_if_file_is_in_subdirectory(){ |
|---|
| 25 | |
|---|
| 26 | $actual = theme_file_uri('/foo.js'); |
|---|
| 27 | $expected = 'http://localhost/wp-content/themes/twentyfifteen/js/foo.js'; |
|---|
| 28 | |
|---|
| 29 | $this->assertEquals($actual,$expected); |
|---|
| 30 | |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | } |
|---|