This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merge pull request #1247 from realityking/fix

Fix failing unit tests.
  • Loading branch information...
2 parents d125701 + f7b6cc5 commit 67895dcce0a1bc335aa62b8f5d7855899cb3fbc4 @realityking realityking committed Jun 3, 2012
@@ -14,7 +14,7 @@
* @subpackage Form
* @since 11.1
*/
-class JFormFieldContentLanguageTest extends TestCaseDatabase
+class JFormFieldContentlanguageTest extends TestCaseDatabase
{
/**
* Sets up dependencies for the test.
@@ -25,7 +25,6 @@ class JFormFieldContentLanguageTest extends TestCaseDatabase
*/
protected function setUp()
{
- require_once JPATH_PLATFORM . '/legacy/form/field/contentlanguage.php';
require_once JPATH_TESTS . '/suites/unit/joomla/form/inspectors.php';
}
@@ -59,7 +58,7 @@ public function testGetInput()
'Line:'.__LINE__.' XML string should load successfully.'
);
- $field = new JFormFieldContentLanguage($form);
+ $field = new JFormFieldContentlanguage($form);
$this->assertThat(
$field->setup($form->getXml()->field, 'value'),
@@ -25,8 +25,7 @@ class JFormFieldEditorTest extends TestCaseDatabase
*/
protected function setUp()
{
- require_once JPATH_PLATFORM . '/joomla/form/fields/editor.php';
- include_once dirname(__DIR__) . '/inspectors.php';
+ require_once JPATH_TESTS . '/suites/unit/joomla/form/inspectors.php';
}
/**

0 comments on commit 67895dc

Please sign in to comment.