Skip to content

Commit

Permalink
refs #4233 setting group on class level to make sure all tests within…
Browse files Browse the repository at this point in the history
… this class have this group
  • Loading branch information
tsteur committed Nov 13, 2013
1 parent 3d02064 commit b2f0936
Show file tree
Hide file tree
Showing 17 changed files with 77 additions and 35 deletions.
5 changes: 5 additions & 0 deletions tests/PHPUnit/Integration/Core/AccessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
use Piwik\Access;
use Piwik\AuthResult;

/**
* Class Core_AccessTest
*
* @group Core
*/
class Core_AccessTest extends DatabaseTestCase
{
public function setUp()
Expand Down
7 changes: 6 additions & 1 deletion tests/PHPUnit/Integration/Core/ArchiveProcessingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ public function public_isArchiveTemporary()
}
}

class ArchiveProcessingTest extends DatabaseTestCase
/**
* Class Core_ArchiveProcessorTest
*
* @group Core
*/
class Core_ArchiveProcessingTest extends DatabaseTestCase
{
public function setUp()
{
Expand Down
5 changes: 5 additions & 0 deletions tests/PHPUnit/Integration/Core/LogTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
use Piwik\Log;
use Piwik\Plugins\TestPlugin\TestLoggingUtility;

/**
* Class Core_LogTest
*
* @group Core
*/
class Core_LogTest extends DatabaseTestCase
{
const TESTMESSAGE = 'test%smessage';
Expand Down
5 changes: 5 additions & 0 deletions tests/PHPUnit/Integration/Core/OptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@

require_once "Option.php";

/**
* Class Core_OptionTest
*
* @group Core
*/
class Core_OptionTest extends DatabaseTestCase
{
/**
Expand Down
5 changes: 5 additions & 0 deletions tests/PHPUnit/Integration/Core/PiwikTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
use Piwik\Plugins\SitesManager\API;
use Piwik\Translate;

/**
* Class Core_PiwikTest
*
* @group Core
*/
class Core_PiwikTest extends DatabaseTestCase
{
/**
Expand Down
2 changes: 2 additions & 0 deletions tests/PHPUnit/Integration/Core/SqlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @group Core
*/
class Core_SqlTest extends DatabaseTestCase
{
Expand Down
2 changes: 2 additions & 0 deletions tests/PHPUnit/Integration/Core/Tracker/ActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @group Core
*/
class Core_Tracker_ActionTest extends DatabaseTestCase
{
Expand Down
5 changes: 5 additions & 0 deletions tests/PHPUnit/Integration/Core/Tracker/VisitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
use Piwik\Tracker\Request;
use Piwik\Tracker\VisitExcluded;

/**
* Class Core_Tracker_VisitTest
*
* @group Core
*/
class Core_Tracker_VisitTest extends DatabaseTestCase
{
public function setUp()
Expand Down
5 changes: 5 additions & 0 deletions tests/PHPUnit/Integration/Core/UpdaterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
*/
use Piwik\Updater;

/**
* Class Core_UpdaterTest
*
* @group Core
*/
class Core_UpdaterTest extends DatabaseTestCase
{
/**
Expand Down
5 changes: 5 additions & 0 deletions tests/PHPUnit/Integration/Core/WidgetsListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
use Piwik\Plugins\Goals\API;
use Piwik\WidgetsList;

/**
* Class Core_WidgetsListTest
*
* @group Core
*/
class Core_WidgetsListTest extends DatabaseTestCase
{
/**
Expand Down
5 changes: 5 additions & 0 deletions tests/PHPUnit/Integration/Plugins/LoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

require_once 'Login/Auth.php';

/**
* Class Plugins_LoginTest
*
* @group Plugins
*/
class Plugins_LoginTest extends DatabaseTestCase
{
public function setUp()
Expand Down
5 changes: 5 additions & 0 deletions tests/PHPUnit/Integration/Plugins/MobileMessagingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
use Piwik\Plugins\ScheduledReports\API as APIScheduledReports;
use Piwik\Plugins\SitesManager\API as APISitesManager;

/**
* Class Plugins_MobileMessagingTest
*
* @group Plugins
*/
class Plugins_MobileMessagingTest extends DatabaseTestCase
{
protected $idSiteAccess;
Expand Down
5 changes: 5 additions & 0 deletions tests/PHPUnit/Integration/Plugins/MultiSitesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
use Piwik\Plugins\MultiSites\API as APIMultiSites;
use Piwik\Plugins\SitesManager\API as APISitesManager;

/**
* Class Plugins_MultiSitesTest
*
* @group Plugins
*/
class Plugins_MultiSitesTest extends DatabaseTestCase
{
protected $idSiteAccess;
Expand Down
5 changes: 5 additions & 0 deletions tests/PHPUnit/Integration/Plugins/ScheduledReportsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@

require_once 'ScheduledReports/ScheduledReports.php';

/**
* Class Plugins_ScheduledReportsTest
*
* @group Plugins
*/
class Plugins_ScheduledReportsTest extends DatabaseTestCase
{
private $idSite = 1;
Expand Down
5 changes: 5 additions & 0 deletions tests/PHPUnit/Integration/Plugins/SegmentEditorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
use Piwik\Plugins\SegmentEditor\API;
use Piwik\Plugins\SitesManager\API as APISitesManager;

/**
* Class Plugins_SegmentEditorTest
*
* @group Plugins
*/
class Plugins_SegmentEditorTest extends DatabaseTestCase
{
public function setUp()
Expand Down
5 changes: 5 additions & 0 deletions tests/PHPUnit/Integration/Plugins/SitesManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
use Piwik\Plugins\UsersManager\API as APIUsersManager;
use Piwik\Site;

/**
* Class Plugins_SitesManagerTest
*
* @group Plugins
*/
class Plugins_SitesManagerTest extends DatabaseTestCase
{
public function setUp()
Expand Down
36 changes: 2 additions & 34 deletions tests/PHPUnit/Integration/Plugins/UsersManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @group Plugins
*/
class Plugins_UsersManagerTest extends DatabaseTestCase
{
Expand Down Expand Up @@ -69,9 +71,6 @@ private function _checkUserHasNotChanged($user, $newPassword, $newEmail = null,
$this->assertEquals($user, $userAfter);
}

/**
* @group Plugins
*/
public function testAllSuperUserIncluded()
{
Config::getInstance()->superuser = array(
Expand Down Expand Up @@ -118,8 +117,6 @@ public function testAllSuperUserIncluded()

/**
* bad password => exception
*
* @group Plugins
*/
public function testUpdateUserBadpasswd()
{
Expand Down Expand Up @@ -160,7 +157,6 @@ public function getAddUserInvalidLoginData()
/**
*
* @dataProvider getAddUserInvalidLoginData
* @group Plugins
*/
public function testAddUserWrongLogin($userLogin, $password, $email, $alias)
{
Expand All @@ -175,8 +171,6 @@ public function testAddUserWrongLogin($userLogin, $password, $email, $alias)

/**
* existing login => exception
*
* @group Plugins
*/
public function testAddUserExistingLogin()
{
Expand Down Expand Up @@ -206,7 +200,6 @@ public function getWrongPasswordTestData()
/**
*
* @dataProvider getWrongPasswordTestData
* @group Plugins
*/
public function testAddUserWrongPassword($userLogin, $password, $email, $alias)
{
Expand Down Expand Up @@ -235,7 +228,6 @@ public function getWrongEmailTestData()
/**
*
* @dataProvider getWrongEmailTestData
* @group Plugins
*/
public function testAddUserWrongEmail($userLogin, $password, $email, $alias)
{
Expand All @@ -250,8 +242,6 @@ public function testAddUserWrongEmail($userLogin, $password, $email, $alias)

/**
* empty email => exception
*
* @group Plugins
*/
public function testAddUserEmptyEmail()
{
Expand All @@ -267,8 +257,6 @@ public function testAddUserEmptyEmail()

/**
* empty alias => use login
*
* @group Plugins
*/
public function testAddUserEmptyAlias()
{
Expand All @@ -281,8 +269,6 @@ public function testAddUserEmptyAlias()

/**
* no alias => use login
*
* @group Plugins
*/
public function testAddUserNoAliasSpecified()
{
Expand All @@ -295,8 +281,6 @@ public function testAddUserNoAliasSpecified()

/**
* normal test case
*
* @group Plugins
*/
public function testAddUser()
{
Expand Down Expand Up @@ -329,8 +313,6 @@ public function testAddUser()

/**
* user doesnt exist => exception
*
* @group Plugins
*/
public function testSeleteUserDoesntExist()
{
Expand All @@ -347,8 +329,6 @@ public function testSeleteUserDoesntExist()

/**
* empty name, doesnt exists =>exception
*
* @group Plugins
*/
public function testDeleteUserEmptyUser()
{
Expand All @@ -363,8 +343,6 @@ public function testDeleteUserEmptyUser()

/**
* null user,, doesnt exists => exception
*
* @group Plugins
*/
public function testDeleteUserNullUser()
{
Expand All @@ -379,8 +357,6 @@ public function testDeleteUserNullUser()

/**
* normal case, user deleted
*
* @group Plugins
*/
public function testDeleteUser()
{
Expand Down Expand Up @@ -419,8 +395,6 @@ public function testDeleteUser()

/**
* no user => exception
*
* @group Plugins
*/
public function testGetUserNoUser()
{
Expand All @@ -437,8 +411,6 @@ public function testGetUserNoUser()

/**
* normal case
*
* @group Plugins
*/
public function test_GetUser()
{
Expand All @@ -462,8 +434,6 @@ public function test_GetUser()

/**
* no user => empty array
*
* @group Plugins
*/
public function testGetUsersNoUser()
{
Expand All @@ -473,8 +443,6 @@ public function testGetUsersNoUser()
/**
* normal case
* as well as selecting specific user names, comma separated
*
* @group Plugins
*/
public function testGetUsers()
{
Expand Down

0 comments on commit b2f0936

Please sign in to comment.