Skip to content

Commit

Permalink
Change the namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
paurakhsharma committed Nov 28, 2018
1 parent 443b566 commit 71cd0cf
Show file tree
Hide file tree
Showing 32 changed files with 63 additions and 69 deletions.
6 changes: 3 additions & 3 deletions tests/unit/ApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
*
*/

namespace OCA\Activity\Tests;
namespace OCA\Activity\Tests\Unit;

use OCA\Activity\Data;
use OCA\Activity\Tests\Mock\Extension;
use OCA\Activity\Tests\Unit\Mock\Extension;
use OCP\Activity\IExtension;

/**
* Class ApiTest
*
* @group DB
* @package OCA\Activity\Tests
* @package OCA\Activity\Tests\Unit
*/
class ApiTest extends TestCase {
protected $originalWEBROOT;
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/AppInfo/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
*
*/

namespace OCA\Activity\Tests\AppInfo;
namespace OCA\Activity\Tests\Unit\AppInfo;

use OCA\Activity\Tests\TestCase;
use OCA\Activity\Tests\Unit\TestCase;

/**
* Class AppTest
*
* @group DB
* @package OCA\Activity\Tests\AppInfo
* @package OCA\Activity\Tests\Unit\AppInfo
*/
class AppTest extends TestCase {
public function testNavigationEntry() {
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/AppInfo/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
*
*/

namespace OCA\Activity\Tests\AppInfo;
namespace OCA\Activity\Tests\Unit\AppInfo;

use OCA\Activity\AppInfo\Application;
use OCA\Activity\Tests\TestCase;
use OCA\Activity\Tests\Unit\TestCase;

/**
* Class ApplicationTest
*
* @group DB
* @package OCA\Activity\Tests\AppInfo
* @package OCA\Activity\Tests\Unit\AppInfo
*/
class ApplicationTest extends TestCase {
/** @var \OCA\Activity\AppInfo\Application */
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/BackgroundJob/EmailNotificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
*
*/

namespace OCA\Activity\Tests\BackgroundJob;
namespace OCA\Activity\Tests\Unit\BackgroundJob;

use OCA\Activity\BackgroundJob\EmailNotification;
use OCA\Activity\Tests\TestCase;
use OCA\Activity\Tests\Unit\TestCase;

/**
* Class EmailNotificationTest
*
* @group DB
* @package OCA\Activity\Tests\BackgroundJob
* @package OCA\Activity\Tests\Unit\BackgroundJob
*/
class EmailNotificationTest extends TestCase {
public function constructAndRunData() {
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/BackgroundJob/ExpireActivitiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
*
*/

namespace OCA\Activity\Tests\BackgroundJob;
namespace OCA\Activity\Tests\Unit\BackgroundJob;

use OCA\Activity\BackgroundJob\ExpireActivities;
use OCA\Activity\Data;
use OCA\Activity\Tests\TestCase;
use OCA\Activity\Tests\Unit\TestCase;
use OCP\IConfig;

/**
* Class ExpireActivitiesTest
*
* @group DB
* @package OCA\Activity\Tests\BackgroundJob
* @package OCA\Activity\Tests\Unit\BackgroundJob
*/
class ExpireActivitiesTest extends TestCase {
public function dataExecute() {
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/ConsumerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

namespace OCA\Activity\Tests;
namespace OCA\Activity\Tests\Unit;

use OCA\Activity\Consumer;
use OCP\DB;
Expand All @@ -28,7 +28,7 @@
* Class ConsumerTest
*
* @group DB
* @package OCA\Activity\Tests
* @package OCA\Activity\Tests\Unit
*/
class ConsumerTest extends TestCase {
/** @var \OCA\Activity\Consumer */
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/Controller/ActivitiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
*
*/

namespace OCA\Activity\Tests\Controller;
namespace OCA\Activity\Tests\Unit\Controller;

use OCA\Activity\Controller\Activities;
use OCA\Activity\Tests\TestCase;
use OCA\Activity\Tests\Unit\TestCase;
use OCP\Template;

/**
* Class ActivitiesTest
*
* @group DB
* @package OCA\Activity\Tests\Controller
* @package OCA\Activity\Tests\Unit\Controller
*/
class ActivitiesTest extends TestCase {
/** @var \OCP\IRequest|\PHPUnit_Framework_MockObject_MockObject */
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Controller/FeedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
*
*/

namespace OCA\Activity\Tests\Controller;
namespace OCA\Activity\Tests\Unit\Controller;

use OCA\Activity\Controller\Feed;
use OCA\Activity\Tests\TestCase;
use OCA\Activity\Tests\Unit\TestCase;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\Util;

Expand Down
6 changes: 3 additions & 3 deletions tests/unit/Controller/OCSEndPointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
*
*/

namespace OCA\Activity\Tests\Controller;
namespace OCA\Activity\Tests\Unit\Controller;

use OCA\Activity\Controller\OCSEndPoint;
use OCA\Activity\Exception\InvalidFilterException;
use OCA\Activity\Tests\TestCase;
use OCA\Activity\Tests\Unit\TestCase;
use OCP\AppFramework\Http;

/**
* Class OCSEndPointTest
*
* @group DB
* @package OCA\Activity\Tests\Controller
* @package OCA\Activity\Tests\Unit\Controller
*/
class OCSEndPointTest extends TestCase {
/** @var \OCP\IRequest|\PHPUnit_Framework_MockObject_MockObject */
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Controller/SettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
*
*/

namespace OCA\Activity\Tests\Controller;
namespace OCA\Activity\Tests\Unit\Controller;

use OCA\Activity\Controller\Settings;
use OCA\Activity\Data;
use OCA\Activity\Tests\TestCase;
use OCA\Activity\Tests\Unit\TestCase;
use OCA\Activity\UserSettings;
use OCP\Activity\IExtension;
use OCP\IConfig;
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/DataDeleteActivitiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

namespace OCA\Activity\Tests;
namespace OCA\Activity\Tests\Unit;

use Doctrine\DBAL\Driver\Statement;
use Doctrine\DBAL\Platforms\MySqlPlatform;
Expand All @@ -31,7 +31,7 @@
* Class DataDeleteActivitiesTest
*
* @group DB
* @package OCA\Activity\Tests
* @package OCA\Activity\Tests\Unit
*/
class DataDeleteActivitiesTest extends TestCase {
/** @var \OCA\Activity\Data */
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/DataHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

namespace OCA\Activity\Tests;
namespace OCA\Activity\Tests\Unit;

use OCA\Activity\DataHelper;

Expand Down
8 changes: 3 additions & 5 deletions tests/unit/DataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,17 @@
*
*/

namespace OCA\Activity\Tests;
namespace OCA\Activity\Tests\Unit;

use OC\DB\QueryBuilder\Literal;
use OCA\Activity\Data;
use OCA\Activity\Tests\Mock\Extension;
use OCP\Activity\IExtension;
use OCP\IUser;
use OCA\Activity\Tests\Unit\Mock\Extension;

/**
* Class DataTest
*
* @group DB
* @package OCA\Activity\Tests
* @package OCA\Activity\Tests\Unit
*/
class DataTest extends TestCase {
/** @var \OCA\Activity\Data */
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/FilesHooksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
*
*/

namespace OCA\Activity;
namespace OCA\Activity\Tests\Unit;

use OCA\Activity\Extension\Files;
use OCA\Activity\Extension\Files_Sharing;
use OCA\Activity\Tests\TestCase;
use OCP\Files\NotFoundException;
use OCP\Share;

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Formatter/BaseFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
*
*/

namespace OCA\Activity\Tests\Formatter;
namespace OCA\Activity\Tests\Unit\Formatter;

use OCA\Activity\Formatter\IFormatter;
use OCA\Activity\Formatter\BaseFormatter;
use OCA\Activity\Tests\TestCase;
use OCA\Activity\Tests\Unit\TestCase;

class BaseFormatterTest extends TestCase {

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Formatter/CloudIDFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
*
*/

namespace OCA\Activity\Tests\Formatter;
namespace OCA\Activity\Tests\Unit\Formatter;

use OCA\Activity\Formatter\CloudIDFormatter;
use OCA\Activity\Formatter\IFormatter;
use OCA\Activity\Tests\TestCase;
use OCA\Activity\Tests\Unit\TestCase;

class CloudIDFormatterTest extends TestCase {
/** @var \OCP\Contacts\IManager|\PHPUnit_Framework_MockObject_MockObject */
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Formatter/FileFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
*
*/

namespace OCA\Activity\Tests\Formatter;
namespace OCA\Activity\Tests\Unit\Formatter;

use OCA\Activity\Formatter\FileFormatter;
use OCA\Activity\Formatter\IFormatter;
use OCA\Activity\Tests\TestCase;
use OCA\Activity\Tests\Unit\TestCase;

class FileFormatterTest extends TestCase {
/** @var \OCP\IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Formatter/GroupFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
*
*/

namespace OCA\Activity\Tests\Formatter;
namespace OCA\Activity\Tests\Unit\Formatter;

use OCA\Activity\Formatter\IFormatter;
use OCA\Activity\Formatter\GroupFormatter;
use OCA\Activity\Tests\TestCase;
use OCA\Activity\Tests\Unit\TestCase;
use OCP\IGroup;
use OCP\IGroupManager;

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Formatter/UserFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

namespace OCA\Activity\Tests\Formatter;
namespace OCA\Activity\Tests\Unit\Formatter;

use OCA\Activity\Formatter\IFormatter;
use OCA\Activity\Formatter\UserFormatter;
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/GroupHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

namespace OCA\Activity\Tests;
namespace OCA\Activity\Tests\Unit;

use OCA\Activity\GroupHelper;
use OCA\Activity\Parameter\Collection;
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/HooksDeleteUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

namespace OCA\Activity\Tests;
namespace OCA\Activity\Tests\Unit;

use Doctrine\DBAL\Driver\Statement;
use OCA\Activity\Data;
Expand All @@ -30,7 +30,7 @@
* Class HooksDeleteUserTest
*
* @group DB
* @package OCA\Activity\Tests
* @package OCA\Activity\Tests\Unit
*/
class HooksDeleteUserTest extends TestCase {
protected function setUp() {
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/MailQueueHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
*/

namespace OCA\Activity\Tests;
namespace OCA\Activity\Tests\Unit;

use OCA\Activity\MailQueueHandler;
use OCA\Activity\UserSettings;
Expand All @@ -30,7 +30,7 @@
* Class MailQueueHandlerTest
*
* @group DB
* @package OCA\Activity\Tests
* @package OCA\Activity\Tests\Unit
*/
class MailQueueHandlerTest extends TestCase {

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Mock/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

namespace OCA\Activity\Tests\Mock;
namespace OCA\Activity\Tests\Unit\Mock;

use OCP\Activity\IExtension;
use OCP\IL10N;
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/NavigationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
*
*/

namespace OCA\Activity\Tests;
namespace OCA\Activity\Tests\Unit;

use OCA\Activity\Navigation;
use OCA\Activity\Tests\Mock\Extension;
use OCA\Activity\Tests\Unit\Mock\Extension;

/**
* Class NavigationTest
*
* @package OCA\Activity\Tests
* @package OCA\Activity\Tests\Unit
* @group DB
*/
class NavigationTest extends TestCase {
Expand Down
Loading

0 comments on commit 71cd0cf

Please sign in to comment.