Browse Source

Rename providers to not begin with test

Fixes https://github.com/owncloud/core/issues/12347
remotes/origin/fix-10825
Lukas Reschke 11 years ago
parent
commit
5f6f54e785
  1. 4
      tests/lib/httphelper.php
  2. 4
      tests/lib/updater.php

4
tests/lib/httphelper.php

@ -24,7 +24,7 @@ class TestHTTPHelper extends \Test\TestCase {
->getMock(); ->getMock();
} }
public function testIsHTTPProvider() {
public function isHttpTestData() {
return array( return array(
array('http://wwww.owncloud.org/enterprise/', true), array('http://wwww.owncloud.org/enterprise/', true),
array('https://wwww.owncloud.org/enterprise/', true), array('https://wwww.owncloud.org/enterprise/', true),
@ -81,7 +81,7 @@ class TestHTTPHelper extends \Test\TestCase {
} }
/** /**
* @dataProvider testIsHTTPProvider
* @dataProvider isHttpTestData
*/ */
public function testIsHTTP($url, $expected) { public function testIsHTTP($url, $expected) {
$this->assertSame($expected, $this->httpHelperMock->isHTTPURL($url)); $this->assertSame($expected, $this->httpHelperMock->isHTTPURL($url));

4
tests/lib/updater.php

@ -10,7 +10,7 @@ namespace OC;
class UpdaterTest extends \Test\TestCase { class UpdaterTest extends \Test\TestCase {
public function testVersionCompatbility() {
public function versionCompatibilityTestData() {
return array( return array(
array('1.0.0.0', '2.2.0', true), array('1.0.0.0', '2.2.0', true),
array('1.1.1.1', '2.0.0', true), array('1.1.1.1', '2.0.0', true),
@ -24,7 +24,7 @@ class UpdaterTest extends \Test\TestCase {
} }
/** /**
* @dataProvider testVersionCompatbility
* @dataProvider versionCompatibilityTestData
*/ */
function testIsUpgradePossible($oldVersion, $newVersion, $result) { function testIsUpgradePossible($oldVersion, $newVersion, $result) {
$updater = new Updater(); $updater = new Updater();

Loading…
Cancel
Save