Skip to content

Commit

Permalink
tests for Carbon_Breadcrumb_Admin::current_dir()
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Jan 5, 2016
1 parent 85442e3 commit 9c12f6c
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* @group admin
*/
class CarbonBreadcrumbAdminCurrentDirTest extends WP_UnitTestCase {

public function setUp() {
$this->admin = $this->getMock('Carbon_Breadcrumb_Admin', null, array(), '', false);
}

public function tearDown() {
unset( $this->admin );
}

/**
* @covers Carbon_Breadcrumb_Admin::current_dir
*/
public function testCurrentDir() {
$expected = dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) . DIRECTORY_SEPARATOR . 'admin';
$actual = $this->admin->current_dir();
$this->assertSame( $expected, $actual );
}

}

0 comments on commit 9c12f6c

Please sign in to comment.