Skip to content

Commit

Permalink
Fix some of the ordering issues in postgres.
Browse files Browse the repository at this point in the history
Postgres is far more pedantic about constraints, and tweaking the
fixture order helps.
  • Loading branch information
markstory committed Sep 7, 2014
1 parent 197c479 commit ecd6ca6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Fixture/TagFixture.php
Expand Up @@ -28,7 +28,7 @@ class TagFixture extends TestFixture {
* @var array * @var array
*/ */
public $fields = array( public $fields = array(
'id' => ['type' => 'integer'], 'id' => ['type' => 'integer', 'null' => false],
'name' => ['type' => 'string', 'null' => false], 'name' => ['type' => 'string', 'null' => false],
'_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]] '_constraints' => ['primary' => ['type' => 'primary', 'columns' => ['id']]]
); );
Expand Down
3 changes: 2 additions & 1 deletion tests/TestCase/Shell/Task/ModelTaskTest.php
Expand Up @@ -37,7 +37,8 @@ class ModelTaskTest extends TestCase {
public $fixtures = array( public $fixtures = array(
'core.bake_article', 'core.bake_comment', 'core.bake_articles_bake_tag', 'core.bake_article', 'core.bake_comment', 'core.bake_articles_bake_tag',
'core.bake_tag', 'core.user', 'core.category_thread', 'core.number_tree', 'core.bake_tag', 'core.user', 'core.category_thread', 'core.number_tree',
'core.counter_cache_user', 'core.counter_cache_post', 'core.articles_tag' 'core.counter_cache_user', 'core.counter_cache_post',
'core.tag', 'core.articles_tag'
); );


/** /**
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Shell/Task/TestTaskTest.php
Expand Up @@ -44,8 +44,8 @@ class TestTaskTest extends TestCase {
'core.article', 'core.article',
'core.author', 'core.author',
'core.comment', 'core.comment',
'core.articles_tag',
'core.tag', 'core.tag',
'core.articles_tag',
]; ];


/** /**
Expand Down

0 comments on commit ecd6ca6

Please sign in to comment.