Skip to content

Commit

Permalink
Merge pull request #3 from wilsonge/layoutstests
Browse files Browse the repository at this point in the history
Start to fix unit tests
  • Loading branch information
phproberto committed Mar 12, 2014
2 parents 15e2420 + 90e007c commit d2036af
Show file tree
Hide file tree
Showing 14 changed files with 226 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,24 @@
* @subpackage Form
* @since 3.1
*/
class JFormFieldHeadertagTest extends PHPUnit_Framework_TestCase
class JFormFieldHeadertagTest extends TestCase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Tests the getInput method.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,24 @@
* @subpackage Form
* @since 3.0
*/
class JFormFieldModuleorderTest extends PHPUnit_Framework_TestCase
class JFormFieldModuleorderTest extends TestCase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Dummy method to prevent failures due to no tests in a class
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@
*/
class JFormFieldCategoryTest extends TestCaseDatabase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Gets the data set to be loaded into the database during setup
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
*/
class JFormFieldCacheHandlerTest extends TestCase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Test the getInput method.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
*/
class JFormFieldDatabaseConnectionTest extends TestCase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Test the getInput method.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
*/
class JFormFieldFileListTest extends TestCase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Test the getInput method.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
*/
class JFormFieldHiddenTest extends TestCase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Test the getInput method.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
*/
class JFormFieldImageListTest extends TestCase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Test the getInput method.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
*/
class JFormFieldIntegersTest extends TestCase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Test the getInput method.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
*/
class JFormFieldLanguageTest extends TestCaseDatabase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Gets the data set to be loaded into the database during setup
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
*/
class JFormFieldListTest extends TestCase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Test the getInput method.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
*/
class JFormFieldPluginsTest extends TestCaseDatabase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Gets the data set to be loaded into the database during setup
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
*/
class JFormFieldSQLTest extends TestCaseDatabase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Gets the data set to be loaded into the database during setup
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
*/
class JFormFieldSessionHandlerTest extends TestCase
{
/**
* Sets up the fixture.
*
* This method is called before a test is executed.
*
* @return void
*
* @since 3.3
*/
protected function setUp()
{
JFactory::$application = $this->getMockApplication();

parent::setUp();
}

/**
* Test the getInput method.
*
Expand Down

0 comments on commit d2036af

Please sign in to comment.