From 9c12f6c8e43093677476499bd847ca0dfae85290 Mon Sep 17 00:00:00 2001 From: Marin Atanasov Date: Wed, 6 Jan 2016 01:26:27 +0200 Subject: [PATCH] tests for Carbon_Breadcrumb_Admin::current_dir() --- .../CarbonBreadcrumbAdminCurrentDirTest.php | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/unit-tests/Carbon_Breadcrumb_Admin/CarbonBreadcrumbAdminCurrentDirTest.php diff --git a/tests/unit-tests/Carbon_Breadcrumb_Admin/CarbonBreadcrumbAdminCurrentDirTest.php b/tests/unit-tests/Carbon_Breadcrumb_Admin/CarbonBreadcrumbAdminCurrentDirTest.php new file mode 100644 index 0000000..046389f --- /dev/null +++ b/tests/unit-tests/Carbon_Breadcrumb_Admin/CarbonBreadcrumbAdminCurrentDirTest.php @@ -0,0 +1,24 @@ +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 ); + } + +}