mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Cleanup Tests
This commit is contained in:
40
lib/unitTest/Alchemy/Phrasea/Application/ApiTest.php
Normal file
40
lib/unitTest/Alchemy/Phrasea/Application/ApiTest.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../Alchemy/Phrasea/Application/Api.php';
|
||||
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class ApplicationAPITest extends PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
protected $client;
|
||||
protected static $need_records = false;
|
||||
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../Alchemy/Phrasea/Application/Api.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
@@ -2,10 +2,12 @@
|
||||
|
||||
require_once __DIR__ . '/../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../Alchemy/Phrasea/Application/Lightbox.php';
|
||||
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class Module_LightboxTest extends PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
class ApplicationLightboxTest extends PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
protected $client;
|
||||
|
41
lib/unitTest/Alchemy/Phrasea/Application/Oauth2Test.php
Normal file
41
lib/unitTest/Alchemy/Phrasea/Application/Oauth2Test.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
|
||||
require_once __DIR__ . '/../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../Alchemy/Phrasea/Application/OAuth2.php';
|
||||
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class ApplicationOauth2Test extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
protected $client;
|
||||
protected static $need_records = false;
|
||||
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../Alchemy/Phrasea/Application/OAuth2.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
@@ -17,11 +17,13 @@
|
||||
*/
|
||||
require_once __DIR__ . '/../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../Alchemy/Phrasea/Application/Overview.php';
|
||||
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpKernel\Client;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class Feed_overviewTest extends PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
class ApplicationOverviewTest extends PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
protected static $need_records = 1;
|
||||
|
40
lib/unitTest/Alchemy/Phrasea/Application/RootTest.php
Normal file
40
lib/unitTest/Alchemy/Phrasea/Application/RootTest.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../Alchemy/Phrasea/Application/Root.php';
|
||||
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class ApplicationRootTest extends PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
protected $client;
|
||||
protected static $need_records = false;
|
||||
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../Alchemy/Phrasea/Application/Root.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
40
lib/unitTest/Alchemy/Phrasea/Application/SetupTest.php
Normal file
40
lib/unitTest/Alchemy/Phrasea/Application/SetupTest.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../Alchemy/Phrasea/Application/Setup.php';
|
||||
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class ApplicationSetupTest extends PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
protected $client;
|
||||
protected static $need_records = false;
|
||||
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../Alchemy/Phrasea/Application/Setup.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
61
lib/unitTest/Alchemy/Phrasea/Controller/Admin/FieldsTest.php
Normal file
61
lib/unitTest/Alchemy/Phrasea/Controller/Admin/FieldsTest.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Admin;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Admin/Fields.php';
|
||||
|
||||
/**
|
||||
* Test class for Fields.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:25:03.
|
||||
*/
|
||||
class ControllerFieldsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Admin.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
@@ -2,6 +2,8 @@
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Admin/Publications.php';
|
||||
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
|
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Admin;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Admin/Subdefs.php';
|
||||
|
||||
/**
|
||||
* Test class for Subdefs.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:25:04.
|
||||
*/
|
||||
class ControllerSubdefsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Admin.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
61
lib/unitTest/Alchemy/Phrasea/Controller/Admin/UsersTest.php
Normal file
61
lib/unitTest/Alchemy/Phrasea/Controller/Admin/UsersTest.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Admin;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Admin/Users.php';
|
||||
|
||||
/**
|
||||
* Test class for Users.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:25:04.
|
||||
*/
|
||||
class ControllerUsersTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Admin.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
70
lib/unitTest/Alchemy/Phrasea/Controller/BoilerPlate.php
Normal file
70
lib/unitTest/Alchemy/Phrasea/Controller/BoilerPlate.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAbstract.class.inc';
|
||||
/**
|
||||
* Always load the controller file for CodeCoverage
|
||||
*/
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/My/Controller.php';
|
||||
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
/**
|
||||
*
|
||||
* This class is a BoilerPlate for a Controller Test
|
||||
*
|
||||
* - You should extends PhraseanetWebTestCaseAuthenticatedAbstract if the
|
||||
* controller required authentication
|
||||
*
|
||||
* - The Class Name should end with "Test" to be detected by
|
||||
*
|
||||
*/
|
||||
class BoilerPlate extends \PhraseanetWebTestCaseAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../Path/To/Application.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
@@ -11,6 +11,8 @@
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/Basket.php';
|
||||
|
||||
use Alchemy\Phrasea\Helper;
|
||||
use Alchemy\Phrasea\RouteProcessor as routeProcessor;
|
||||
|
||||
@@ -20,7 +22,7 @@ use Alchemy\Phrasea\RouteProcessor as routeProcessor;
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class basketTest extends PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
class ControllerBasketTest extends PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
protected $client;
|
||||
|
61
lib/unitTest/Alchemy/Phrasea/Controller/Prod/BridgeTest.php
Normal file
61
lib/unitTest/Alchemy/Phrasea/Controller/Prod/BridgeTest.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Prod;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/Bridge.php';
|
||||
|
||||
/**
|
||||
* Test class for Bridge.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:24:27.
|
||||
*/
|
||||
class ControllerBridgeTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Prod.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
61
lib/unitTest/Alchemy/Phrasea/Controller/Prod/EditTest.php
Normal file
61
lib/unitTest/Alchemy/Phrasea/Controller/Prod/EditTest.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Prod;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/Edit.php';
|
||||
|
||||
/**
|
||||
* Test class for Edit.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:24:28.
|
||||
*/
|
||||
class ControllerEditTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Prod.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
@@ -2,10 +2,12 @@
|
||||
|
||||
require_once dirname(__FILE__) . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/Feed.php';
|
||||
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class Module_Prod_Route_RecordFeedApp extends PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
class ControllerFeedApp extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
protected $feed;
|
||||
|
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Prod;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/MoveCollection.php';
|
||||
|
||||
/**
|
||||
* Test class for MoveCollection.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:24:28.
|
||||
*/
|
||||
class ControllerMoveCollectionTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Prod.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
61
lib/unitTest/Alchemy/Phrasea/Controller/Prod/PrinterTest.php
Normal file
61
lib/unitTest/Alchemy/Phrasea/Controller/Prod/PrinterTest.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Prod;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/Printer.php';
|
||||
|
||||
/**
|
||||
* Test class for Printer.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:24:29.
|
||||
*/
|
||||
class ControllerPrinterTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Prod.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
61
lib/unitTest/Alchemy/Phrasea/Controller/Prod/PushTest.php
Normal file
61
lib/unitTest/Alchemy/Phrasea/Controller/Prod/PushTest.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Prod;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/Push.php';
|
||||
|
||||
/**
|
||||
* Test class for Push.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:24:29.
|
||||
*/
|
||||
class ControllerPushTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Prod.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
61
lib/unitTest/Alchemy/Phrasea/Controller/Prod/RootTest.php
Normal file
61
lib/unitTest/Alchemy/Phrasea/Controller/Prod/RootTest.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Prod;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/Root.php';
|
||||
|
||||
/**
|
||||
* Test class for Root.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:24:30.
|
||||
*/
|
||||
class ControllerRootTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Prod.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
@@ -11,6 +11,8 @@
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/Story.php';
|
||||
|
||||
use Doctrine\Common\DataFixtures\Loader;
|
||||
use PhraseaFixture\Basket as MyFixture;
|
||||
use Alchemy\Phrasea\Helper;
|
||||
@@ -22,7 +24,7 @@ use Alchemy\Phrasea\RouteProcessor as routeProcessor;
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class storyTest extends PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
class ControllerStoryTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
protected $client;
|
||||
|
@@ -2,10 +2,12 @@
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/UsrLists.php';
|
||||
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class Module_Prod_Route_TooltipTest extends PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
class ControllerTooltipTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
protected $client;
|
||||
|
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Prod;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/UsrLists.php';
|
||||
|
||||
/**
|
||||
* Test class for UsrLists.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:24:30.
|
||||
*/
|
||||
class ControllerUsrListsTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Prod.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
@@ -11,6 +11,8 @@
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/WorkZone.php';
|
||||
|
||||
use Alchemy\Phrasea\Helper;
|
||||
use Alchemy\Phrasea\RouteProcessor as routeProcessor;
|
||||
|
||||
@@ -20,7 +22,7 @@ use Alchemy\Phrasea\RouteProcessor as routeProcessor;
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
class WorkZoneTest extends PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
class ControllerWorkZoneTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
||||
{
|
||||
|
||||
protected $client;
|
||||
|
@@ -3,11 +3,13 @@
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAbstract.class.inc';
|
||||
require_once __DIR__ . '/../../../../FeedValidator.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Root/RSSFeeds.php';
|
||||
|
||||
use Silex\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\DomCrawler\Crawler;
|
||||
|
||||
class Module_RssFeedTest extends PhraseanetWebTestCaseAbstract
|
||||
class ControllerRssFeedTest extends \PhraseanetWebTestCaseAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
|
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Setup;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Setup/Installer.php';
|
||||
|
||||
/**
|
||||
* Test class for Installer.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:21:34.
|
||||
*/
|
||||
class ControllerInstallerTest extends \PhraseanetWebTestCaseAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Setup.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Setup;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Setup/Upgrader.php';
|
||||
|
||||
/**
|
||||
* Test class for Upgrader.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:21:35.
|
||||
*/
|
||||
class ControllerUpgraderTest extends \PhraseanetWebTestCaseAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Setup.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Utils;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Utils/ConnectionTest.php';
|
||||
|
||||
/**
|
||||
* Test class for ConnectionTest.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:20:20.
|
||||
*/
|
||||
class ControllerConnectionTestTest extends \PhraseanetWebTestCaseAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Admin.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Utils;
|
||||
|
||||
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAbstract.class.inc';
|
||||
|
||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Utils/PathFileTest.php';
|
||||
|
||||
/**
|
||||
* Test class for PathFileTest.
|
||||
* Generated by PHPUnit on 2012-01-11 at 18:20:21.
|
||||
*/
|
||||
class ControllerPathFileTestTest extends \PhraseanetWebTestCaseAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* As controllers use WebTestCase, it requires a client
|
||||
*/
|
||||
protected $client;
|
||||
/**
|
||||
* If the controller tests require some records, specify it her
|
||||
*
|
||||
* For example, this will loacd 2 records
|
||||
* (self::$record_1 and self::$record_2) :
|
||||
*
|
||||
* $need_records = 2;
|
||||
*
|
||||
*/
|
||||
protected static $need_records = false;
|
||||
|
||||
/**
|
||||
* The application loader
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
return require __DIR__ . '/../../../../../Alchemy/Phrasea/Application/Admin.php';
|
||||
}
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->client = $this->createClient();
|
||||
}
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
$this->feed->delete();
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* Default route test
|
||||
*/
|
||||
public function testRouteSlash()
|
||||
{
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user