Skip to content

Commit

Permalink
Reorder fixtures to prove that the order does not matter anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
HavokInspiration committed Oct 15, 2015
1 parent e640202 commit d2993dd
Show file tree
Hide file tree
Showing 23 changed files with 53 additions and 47 deletions.
2 changes: 1 addition & 1 deletion tests/TestCase/Auth/BasicAuthenticateTest.php
Expand Up @@ -35,7 +35,7 @@ class BasicAuthenticateTest extends TestCase
*
* @var array
*/
public $fixtures = ['core.users', 'core.auth_users'];
public $fixtures = ['core.auth_users', 'core.users'];

/**
* setup
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Auth/DigestAuthenticateTest.php
Expand Up @@ -36,7 +36,7 @@ class DigestAuthenticateTest extends TestCase
*
* @var array
*/
public $fixtures = ['core.users', 'core.auth_users'];
public $fixtures = ['core.auth_users', 'core.users'];

/**
* setup
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Auth/FormAuthenticateTest.php
Expand Up @@ -38,7 +38,7 @@ class FormAuthenticateTest extends TestCase
*
* @var array
*/
public $fixtures = ['core.users', 'core.auth_users'];
public $fixtures = ['core.auth_users', 'core.users'];

/**
* setup
Expand Down
10 changes: 5 additions & 5 deletions tests/TestCase/Console/ShellTest.php
Expand Up @@ -128,13 +128,13 @@ class ShellTest extends TestCase
* @var array
*/
public $fixtures = [
'core.posts',
'core.comments',
'core.articles',
'core.users',
'core.tags',
'core.articles_tags',
'core.attachments'
'core.attachments',
'core.comments',
'core.posts',
'core.tags',
'core.users'
];

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Controller/Component/AuthComponentTest.php
Expand Up @@ -52,7 +52,7 @@ class AuthComponentTest extends TestCase
*
* @var array
*/
public $fixtures = ['core.users', 'core.auth_users'];
public $fixtures = ['core.auth_users', 'core.users'];

/**
* setUp method
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Controller/ControllerTest.php
Expand Up @@ -239,8 +239,8 @@ class ControllerTest extends TestCase
* @var array
*/
public $fixtures = [
'core.posts',
'core.comments'
'core.comments',
'core.posts'
];

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Database/Schema/TableTest.php
Expand Up @@ -39,7 +39,7 @@ public function getBaseType()
class TableTest extends TestCase
{

public $fixtures = ['core.articles_tags', 'core.products', 'core.orders', 'core.tags'];
public $fixtures = ['core.articles_tags', 'core.orders', 'core.products', 'core.tags'];

protected $_map;

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Network/SessionTest.php
Expand Up @@ -63,7 +63,7 @@ class SessionTest extends TestCase
*
* @var array
*/
public $fixtures = ['core.sessions', 'core.cake_sessions'];
public $fixtures = ['core.cake_sessions', 'core.sessions'];

/**
* setup before class.
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/ORM/Association/BelongsToTest.php
Expand Up @@ -36,7 +36,7 @@ class BelongsToTest extends TestCase
*
* @var array
*/
public $fixtures = ['core.articles', 'core.comments', 'core.authors'];
public $fixtures = ['core.articles', 'core.authors', 'core.comments'];

/**
* Don't autoload fixtures as most tests uses mocks.
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/ORM/Behavior/BehaviorRegressionTest.php
Expand Up @@ -39,8 +39,8 @@ class BehaviorRegressionTest extends TestCase
* @var array
*/
public $fixtures = [
'core.translates',
'core.number_trees',
'core.translates'
];

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/ORM/Behavior/CounterCacheBehaviorTest.php
Expand Up @@ -48,9 +48,9 @@ class CounterCacheBehaviorTest extends TestCase
* @var array
*/
public $fixtures = [
'core.counter_cache_users',
'core.counter_cache_posts',
'core.counter_cache_categories',
'core.counter_cache_posts',
'core.counter_cache_users'
];

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/ORM/Behavior/TranslateBehaviorTest.php
Expand Up @@ -44,10 +44,10 @@ class TranslateBehaviorTest extends TestCase
* @var array
*/
public $fixtures = [
'core.translates',
'core.articles',
'core.authors',
'core.comments',
'core.authors'
'core.translates'
];

public function tearDown()
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/ORM/Behavior/TreeBehaviorTest.php
Expand Up @@ -33,8 +33,8 @@ class TreeBehaviorTest extends TestCase
* @var array
*/
public $fixtures = [
'core.number_trees',
'core.menu_link_trees'
'core.menu_link_trees',
'core.number_trees'
];

public function setUp()
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/ORM/BindingKeyTest.php
Expand Up @@ -29,9 +29,9 @@ class BindingKeyTest extends TestCase
* @var array
*/
public $fixtures = [
'core.users',
'core.auth_users',
'core.site_authors'
'core.site_authors',
'core.users'
];

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/ORM/CompositeKeysTest.php
Expand Up @@ -47,9 +47,9 @@ class CompositeKeyTest extends TestCase
public $fixtures = [
'core.composite_increments',
'core.site_articles',
'core.site_articles_tags',
'core.site_authors',
'core.site_tags',
'core.site_articles_tags'
'core.site_tags'
];

/**
Expand Down
8 changes: 4 additions & 4 deletions tests/TestCase/ORM/MarshallerTest.php
Expand Up @@ -98,12 +98,12 @@ class MarshallerTest extends TestCase
{

public $fixtures = [
'core.tags',
'core.articles_tags',
'core.articles',
'core.users',
'core.articles_tags',
'core.comments',
'core.special_tags'
'core.special_tags',
'core.tags',
'core.users'
];

/**
Expand Down
10 changes: 5 additions & 5 deletions tests/TestCase/ORM/QueryRegressionTest.php
Expand Up @@ -34,17 +34,17 @@ class QueryRegressionTest extends TestCase
* @var array
*/
public $fixtures = [
'core.users',
'core.articles',
'core.comments',
'core.tags',
'core.articles_tags',
'core.authors',
'core.special_tags',
'core.translates',
'core.authors_tags',
'core.comments',
'core.featured_tags',
'core.special_tags',
'core.tags',
'core.tags_translations',
'core.translates',
'core.users'
];

/**
Expand Down
10 changes: 8 additions & 2 deletions tests/TestCase/ORM/QueryTest.php
Expand Up @@ -36,8 +36,14 @@ class QueryTest extends TestCase
*
* @var array
*/
public $fixtures = ['core.articles', 'core.authors', 'core.tags',
'core.comments', 'core.articles_tags', 'core.posts'];
public $fixtures = [
'core.articles',
'core.articles_tags',
'core.authors',
'core.comments'
'core.posts',
'core.tags'
];

/**
* setUp method
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/ORM/ResultSetTest.php
Expand Up @@ -30,7 +30,7 @@
class ResultSetTest extends TestCase
{

public $fixtures = ['core.authors', 'core.articles', 'core.comments'];
public $fixtures = ['core.articles', 'core.authors', 'core.comments'];

/**
* setup
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/ORM/RulesCheckerIntegrationTest.php
Expand Up @@ -30,7 +30,7 @@ class RulesCheckerIntegrationTest extends TestCase
*
* @var array
*/
public $fixtures = ['core.articles', 'core.authors', 'core.tags', 'core.articles_tags'];
public $fixtures = ['core.articles', 'core.articles_tags', 'core.authors', 'core.tags'];

/**
* Tear down
Expand Down
14 changes: 7 additions & 7 deletions tests/TestCase/ORM/TableTest.php
Expand Up @@ -48,18 +48,18 @@ class TableTest extends TestCase
{

public $fixtures = [
'core.comments',
'core.users',
'core.categories',
'core.articles',
'core.authors',
'core.tags',
'core.articles_tags',
'core.site_articles',
'core.members',
'core.authors',
'core.categories',
'core.comments',
'core.groups',
'core.groups_members',
'core.members',
'core.polymorphic_tagged',
'core.site_articles',
'core.tags',
'core.users'
];

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Routing/RequestActionTraitTest.php
Expand Up @@ -33,7 +33,7 @@ class RequestActionTraitTest extends TestCase
*
* @var string
*/
public $fixtures = ['core.posts', 'core.test_plugin_comments', 'core.comments'];
public $fixtures = ['core.comments', 'core.posts', 'core.test_plugin_comments'];

/**
* Setup
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/View/ViewTest.php
Expand Up @@ -282,7 +282,7 @@ class ViewTest extends TestCase
*
* @var array
*/
public $fixtures = ['core.users', 'core.posts'];
public $fixtures = ['core.posts', 'core.users'];

/**
* setUp method
Expand Down

0 comments on commit d2993dd

Please sign in to comment.