Skip to content
Permalink
Browse files

pluralize $fixtures

  • Loading branch information...
antograssiot committed Sep 23, 2014
1 parent a6df593 commit 38b9abd19eec93e69869e0481b90085a010fcacc
Showing with 99 additions and 94 deletions.
  1. +1 −1 tests/TestCase/Auth/BasicAuthenticateTest.php
  2. +1 −1 tests/TestCase/Auth/DigestAuthenticateTest.php
  3. +1 −1 tests/TestCase/Auth/FormAuthenticateTest.php
  4. +9 −4 tests/TestCase/Console/ShellTest.php
  5. +1 −1 tests/TestCase/Controller/Component/AuthComponentTest.php
  6. +8 −8 tests/TestCase/Controller/Component/PaginatorComponentTest.php
  7. +1 −1 tests/TestCase/Controller/Component/SessionComponentTest.php
  8. +2 −2 tests/TestCase/Controller/ControllerTest.php
  9. +1 −1 tests/TestCase/Database/ConnectionTest.php
  10. +1 −1 tests/TestCase/Database/QueryTest.php
  11. +1 −1 tests/TestCase/Database/Schema/CollectionTest.php
  12. +2 −2 tests/TestCase/Model/Behavior/CounterCacheBehaviorTest.php
  13. +2 −2 tests/TestCase/Model/Behavior/TimestampBehaviorTest.php
  14. +4 −4 tests/TestCase/Model/Behavior/TranslateBehaviorTest.php
  15. +2 −2 tests/TestCase/Model/Behavior/TreeBehaviorTest.php
  16. +1 −1 tests/TestCase/Network/Session/DatabaseSessionTest.php
  17. +1 −1 tests/TestCase/Network/SessionTest.php
  18. +1 −1 tests/TestCase/ORM/Association/BelongsToTest.php
  19. +1 −1 tests/TestCase/ORM/AssociationProxyTest.php
  20. +4 −4 tests/TestCase/ORM/CompositeKeysTest.php
  21. +1 −1 tests/TestCase/ORM/MarshallerTest.php
  22. +8 −8 tests/TestCase/ORM/QueryRegressionTest.php
  23. +2 −2 tests/TestCase/ORM/QueryTest.php
  24. +1 −1 tests/TestCase/ORM/ResultSetTest.php
  25. +2 −2 tests/TestCase/ORM/TableTest.php
  26. +1 −1 tests/TestCase/ORM/TableUuidTest.php
  27. +1 −1 tests/TestCase/ORM/ValidationIntegrationTest.php
  28. +1 −1 tests/TestCase/Routing/RequestActionTraitTest.php
  29. +1 −1 tests/TestCase/Shell/BakeShellTest.php
  30. +1 −1 tests/TestCase/Shell/OrmCacheShellTest.php
  31. +1 −1 tests/TestCase/Shell/Task/ControllerTaskTest.php
  32. +1 −1 tests/TestCase/Shell/Task/FixtureTaskTest.php
  33. +4 −4 tests/TestCase/Shell/Task/ModelTaskTest.php
  34. +15 −15 tests/TestCase/Shell/Task/TestTaskTest.php
  35. +5 −5 tests/TestCase/Shell/Task/ViewTaskTest.php
  36. +1 −1 tests/TestCase/TestSuite/ControllerTestCaseTest.php
  37. +1 −1 tests/TestCase/TestSuite/TestFixtureTest.php
  38. +1 −1 tests/TestCase/Utility/XmlTest.php
  39. +1 −1 tests/TestCase/View/Form/EntityContextTest.php
  40. +4 −4 tests/TestCase/View/Helper/FormHelperTest.php
  41. +1 −1 tests/TestCase/View/ViewTest.php
@@ -34,7 +34,7 @@ class BasicAuthenticateTest extends TestCase {
*
* @var array
*/
public $fixtures = array('core.user', 'core.auth_user');
public $fixtures = array('core.users', 'core.auth_users');
/**
* setup
@@ -35,7 +35,7 @@ class DigestAuthenticateTest extends TestCase {
*
* @var array
*/
public $fixtures = array('core.user', 'core.auth_user');
public $fixtures = array('core.users', 'core.auth_users');
/**
* setup
@@ -37,7 +37,7 @@ class FormAuthenticateTest extends TestCase {
*
* @var array
*/
public $fixtures = ['core.user', 'core.auth_user'];
public $fixtures = ['core.users', 'core.auth_users'];
/**
* setup
@@ -121,10 +121,15 @@ class ShellTest extends TestCase {
*
* @var array
*/
public $fixtures = array(
'core.post', 'core.comment', 'core.article', 'core.user',
'core.tag', 'core.articles_tag', 'core.attachment'
);
public $fixtures = [
'core.posts',
'core.comments',
'core.articles',
'core.users',
'core.tags',
'core.articles_tags',
'core.attachments'
];
/**
* setUp method
@@ -51,7 +51,7 @@ class AuthComponentTest extends TestCase {
*
* @var array
*/
public $fixtures = ['core.user', 'core.auth_user'];
public $fixtures = ['core.users', 'core.auth_users'];
/**
* setUp method
@@ -46,7 +46,7 @@ class PaginatorComponentTest extends TestCase {
*
* @var array
*/
public $fixtures = array('core.post');
public $fixtures = array('core.posts');
/**
* Don't load data for fixtures for all tests
@@ -147,7 +147,7 @@ public function testPaginateExtraParams() {
* @return void
*/
public function testPaginateCustomFinderOptions() {
$this->loadFixtures('Post');
$this->loadFixtures('Posts');
$settings = [
'PaginatorPosts' => [
'finder' => ['author' => ['author_id' => 1]]
@@ -469,7 +469,7 @@ public function testValidateSortInvalidDirection() {
* @return void
*/
public function testOutOfRangePageNumberGetsClamped() {
$this->loadFixtures('Post');
$this->loadFixtures('Posts');
$this->request->query['page'] = 3000;
$table = TableRegistry::get('PaginatorPosts');
@@ -492,7 +492,7 @@ public function testOutOfRangePageNumberGetsClamped() {
* @return void
*/
public function testOutOfVeryBigPageNumberGetsClamped() {
$this->loadFixtures('Post');
$this->loadFixtures('Posts');
$this->request->query = [
'page' => '3000000000000000000000000',
];
@@ -660,7 +660,7 @@ public function testCheckLimit() {
* @return void
*/
public function testPaginateMaxLimit() {
$this->loadFixtures('Post');
$this->loadFixtures('Posts');
$table = TableRegistry::get('PaginatorPosts');
$settings = [
@@ -687,7 +687,7 @@ public function testPaginateMaxLimit() {
* @return void
*/
public function testPaginateCustomFind() {
$this->loadFixtures('Post');
$this->loadFixtures('Posts');
$idExtractor = function ($result) {
$ids = [];
foreach ($result as $record) {
@@ -740,7 +740,7 @@ public function testPaginateCustomFind() {
* @return void
*/
public function testPaginateCustomFindOldOption() {
$this->loadFixtures('Post');
$this->loadFixtures('Posts');
$table = TableRegistry::get('PaginatorPosts');
$this->Paginator->paginate($table, ['findType' => 'published']);
}
@@ -751,7 +751,7 @@ public function testPaginateCustomFindOldOption() {
* @return void
*/
public function testPaginateCustomFindFieldsArray() {
$this->loadFixtures('Post');
$this->loadFixtures('Posts');
$table = TableRegistry::get('PaginatorPosts');
$data = array('author_id' => 3, 'title' => 'Fourth Article', 'body' => 'Article Body, unpublished', 'published' => 'N');
$table->save(new \Cake\ORM\Entity($data));
@@ -37,7 +37,7 @@ class SessionComponentTest extends TestCase {
*
* @var string
*/
public $fixtures = array('core.session');
public $fixtures = array('core.sessions');
/**
* test case startup
@@ -206,8 +206,8 @@ class ControllerTest extends TestCase {
* @var array
*/
public $fixtures = array(
'core.post',
'core.comment'
'core.posts',
'core.comments'
);
/**
@@ -24,7 +24,7 @@
*/
class ConnectionTest extends TestCase {
public $fixtures = ['core.thing'];
public $fixtures = ['core.things'];
public function setUp() {
$this->connection = ConnectionManager::get('test');
@@ -26,7 +26,7 @@
*/
class QueryTest extends TestCase {
public $fixtures = ['core.article', 'core.author', 'core.comment'];
public $fixtures = ['core.articles', 'core.authors', 'core.comments'];
const ARTICLE_COUNT = 3;
const AUTHOR_COUNT = 4;
@@ -28,7 +28,7 @@
class CollectionTest extends TestCase {
public $fixtures = [
'core.user'
'core.users'
];
/**
@@ -45,8 +45,8 @@ class CounterCacheBehaviorTest extends TestCase {
* @var array
*/
public $fixtures = [
'core.counter_cache_user',
'core.counter_cache_post'
'core.counter_cache_users',
'core.counter_cache_posts'
];
/**
@@ -41,7 +41,7 @@ class TimestampBehaviorTest extends TestCase {
* @var array
*/
public $fixtures = [
'core.user'
'core.users'
];
/**
@@ -355,7 +355,7 @@ public function testTouchCustomEvent() {
* @return void
*/
public function testSaveTriggersInsert() {
$this->loadFixtures('User');
$this->loadFixtures('Users');
$table = TableRegistry::get('users');
$table->addBehavior('Timestamp', [
@@ -33,10 +33,10 @@ class TranslateBehaviorTest extends TestCase {
* @var array
*/
public $fixtures = [
'core.translate',
'core.article',
'core.comment',
'core.author'
'core.translates',
'core.articles',
'core.comments',
'core.authors'
];
public function tearDown() {
@@ -32,8 +32,8 @@ class TreeBehaviorTest extends TestCase {
* @var array
*/
public $fixtures = [
'core.number_tree',
'core.menu_link_tree'
'core.number_trees',
'core.menu_link_trees'
];
public function setUp() {
@@ -35,7 +35,7 @@ class DatabaseSessionTest extends TestCase {
*
* @var string
*/
public $fixtures = ['core.session'];
public $fixtures = ['core.sessions'];
/**
* setUp
@@ -60,7 +60,7 @@ class SessionTest extends TestCase {
*
* @var array
*/
public $fixtures = array('core.session', 'core.cake_session');
public $fixtures = array('core.sessions', 'core.cake_sessions');
/**
* setup before class.
@@ -34,7 +34,7 @@ class BelongsToTest extends \Cake\TestSuite\TestCase {
*
* @var array
*/
public $fixtures = ['core.article', 'core.comment'];
public $fixtures = ['core.articles', 'core.comments'];
/**
* Don't autoload fixtures as most tests uses mocks.
@@ -32,7 +32,7 @@ class AssociationProxyTest extends TestCase {
* @var array
*/
public $fixtures = [
'core.article', 'core.author', 'core.comment'
'core.articles', 'core.authors', 'core.comments'
];
/**
@@ -44,10 +44,10 @@ class CompositeKeyTest extends TestCase {
* @var array
*/
public $fixtures = [
'core.site_article',
'core.site_author',
'core.site_tag',
'core.site_articles_tag'
'core.site_articles',
'core.site_authors',
'core.site_tags',
'core.site_articles_tags'
];
/**
@@ -49,7 +49,7 @@ class ProtectedArticle extends Entity {
*/
class MarshallerTest extends TestCase {
public $fixtures = ['core.tag', 'core.articles_tag', 'core.article', 'core.user', 'core.comment'];
public $fixtures = ['core.tags', 'core.articles_tags', 'core.articles', 'core.users', 'core.comments'];
/**
* setup
@@ -33,14 +33,14 @@ class QueryRegressionTest extends TestCase {
* @var array
*/
public $fixtures = [
'core.user',
'core.article',
'core.comment',
'core.tag',
'core.articles_tag',
'core.author',
'core.special_tag',
'core.translate',
'core.users',
'core.articles',
'core.comments',
'core.tags',
'core.articles_tags',
'core.authors',
'core.special_tags',
'core.translates',
];
/**
@@ -35,8 +35,8 @@ class QueryTest extends TestCase {
*
* @var array
*/
public $fixtures = ['core.article', 'core.author', 'core.tag',
'core.articles_tag', 'core.post'];
public $fixtures = ['core.articles', 'core.authors', 'core.tags',
'core.articles_tags', 'core.posts'];
/**
* setUp method
@@ -28,7 +28,7 @@
*/
class ResultSetTest extends TestCase {
public $fixtures = ['core.article', 'core.comment'];
public $fixtures = ['core.articles', 'core.comments'];
/**
* setup
@@ -38,8 +38,8 @@ class UsersTable extends Table {
class TableTest extends \Cake\TestSuite\TestCase {
public $fixtures = [
'core.user', 'core.category', 'core.article', 'core.author',
'core.tag', 'core.articles_tag'
'core.users', 'core.categories', 'core.articles', 'core.authors',
'core.tags', 'core.articles_tags'
];
/**
@@ -34,7 +34,7 @@ class TableUuidTest extends TestCase {
* @var array
*/
public $fixtures = [
'core.uuiditem', 'core.uuidportfolio'
'core.uuiditems', 'core.uuidportfolios'
];
/**
@@ -28,7 +28,7 @@ class ValidationIntegrationTest extends TestCase {
*
* @var array
*/
public $fixtures = ['core.article'];
public $fixtures = ['core.articles'];
/**
* Tear down
@@ -31,7 +31,7 @@ class RequestActionTraitTest extends TestCase {
*
* @var string
*/
public $fixtures = array('core.post', 'core.test_plugin_comment', 'core.comment');
public $fixtures = array('core.posts', 'core.test_plugin_comments', 'core.comments');
/**
* Setup
@@ -28,7 +28,7 @@ class BakeShellTest extends TestCase {
*
* @var array
*/
public $fixtures = array('core.comment');
public $fixtures = array('core.comments');
/**
* setup test
@@ -29,7 +29,7 @@ class OrmCacheShellTest extends TestCase {
*
* @var array
*/
public $fixtures = ['core.article', 'core.tag'];
public $fixtures = ['core.articles', 'core.tags'];
/**
* setup method
@@ -48,7 +48,7 @@ class ControllerTaskTest extends TestCase {
*
* @var array
*/
public $fixtures = ['core.bake_article', 'core.bake_articles_bake_tag', 'core.bake_comment', 'core.bake_tag'];
public $fixtures = ['core.bake_articles', 'core.bake_articles_bake_tags', 'core.bake_comments', 'core.bake_tags'];
/**
* setUp method
Oops, something went wrong.

0 comments on commit 38b9abd

Please sign in to comment.
You can’t perform that action at this time.