From d3e3a84cae9c8926bcff810a0e16bb9dcd024888 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 3 Jun 2015 12:03:02 +0200 Subject: Move the helpful method to the TestCase class --- tests/lib/security/hasher.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/lib/security') diff --git a/tests/lib/security/hasher.php b/tests/lib/security/hasher.php index 330789c67a0..a6f7df5b79f 100644 --- a/tests/lib/security/hasher.php +++ b/tests/lib/security/hasher.php @@ -11,7 +11,7 @@ use OC\Security\Hasher; /** * Class HasherTest */ -class HasherTest extends \PHPUnit_Framework_TestCase { +class HasherTest extends \Test\TestCase { /** * @return array @@ -70,14 +70,15 @@ class HasherTest extends \PHPUnit_Framework_TestCase { ); } - - /** @var Hasher */ protected $hasher; + /** @var \OCP\IConfig */ protected $config; protected function setUp() { + parent::setUp(); + $this->config = $this->getMockBuilder('\OCP\IConfig') ->disableOriginalConstructor()->getMock(); @@ -93,7 +94,7 @@ class HasherTest extends \PHPUnit_Framework_TestCase { * @dataProvider versionHashProvider */ function testSplitHash($hash, $expected) { - $relativePath = \Test_Helper::invokePrivate($this->hasher, 'splitHash', array($hash)); + $relativePath = self::invokePrivate($this->hasher, 'splitHash', array($hash)); $this->assertSame($expected, $relativePath); } -- cgit v1.2.3