Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 5557415

Browse files
committed
Update tests
1 parent 9a901b1 commit 5557415

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/php/Domain/Package.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,20 @@
1313
class Package extends WP_UnitTestCase {
1414

1515
private function get_package() {
16-
return new TestedPackage( '1.0.0', __FILE__ );
16+
return new TestedPackage( '1.0.0', __DIR__ );
1717
}
1818

1919
public function test_get_version() {
2020
$this->assertEquals( '1.0.0', $this->get_package()->get_version() );
2121
}
2222

23-
public function test_get_plugin_file() {
24-
$this->assertEquals( __FILE__, $this->get_package()->get_plugin_file() );
25-
}
26-
2723
public function test_get_path() {
2824
$package = $this->get_package();
2925
// test without relative
30-
$this->assertEquals( dirname( __FILE__ ) . '/', $package->get_path() );
26+
$this->assertEquals( __DIR__ . '/', $package->get_path() );
3127

3228
//test with relative
33-
$expect = dirname( __FILE__ ) . '/build/test';
29+
$expect = __DIR__ . '/build/test';
3430
$this->assertEquals( $expect, $package->get_path( 'build/test') );
3531
}
3632

0 commit comments

Comments
 (0)