Skip to content
Permalink
Browse files

Fix unit testing for postgresql

  • Loading branch information...
redaxmedia committed Jul 30, 2019
1 parent 2eb7c38 commit 34637c9032653824af44e7471f159e5408e0609f
@@ -17,9 +17,9 @@
"lastId": null
},
{
"keywords": "Setting"
"keywords": "setting"
},
"Setting"
"setting"
],
[
{
@@ -28,20 +28,20 @@
"lastId": 1
},
{
"keywords": "Setting"
"keywords": "setting"
},
"Setting"
"setting"
],
[
{
"useKeywords": "Use",
"useKeywords": "use",
"lastTable": null,
"lastId": null
},
{
"keywords": "Setting"
"keywords": "setting"
},
"Use"
"use"
],
[
{
@@ -50,9 +50,9 @@
"lastId": 2
},
{
"keywords": "Setting"
"keywords": "setting"
},
"Article Two"
"article, two"
],
[
{
@@ -61,9 +61,9 @@
"lastId": 2
},
{
"keywords": "Setting"
"keywords": "setting"
},
"Category Two"
"category, two"
],
[
{
@@ -72,9 +72,9 @@
"lastId": 3
},
{
"keywords": "Setting"
"keywords": "setting"
},
"Category Two"
"category, two"
],
[
{
@@ -83,8 +83,8 @@
"lastId": 3
},
{
"keywords": "Setting"
"keywords": "setting"
},
"Category Two"
"category, two"
]
]
@@ -5,7 +5,7 @@
[
"categories"
],
"search": "One"
"search": "one"
},
"<h2 class=\"rs-title-result\">Categories</h2><ol class=\"rs-list-result\"><li><a class=\"rs-link-result\" href=\"category-one\">Category One</a><span class=\"rs-text-result-date\">01.01.2017</span></li></ol>"
],
@@ -15,7 +15,7 @@
[
"articles"
],
"search": "One"
"search": "one"
},
"<h2 class=\"rs-title-result\">Articles</h2><ol class=\"rs-list-result\"><li><a class=\"rs-link-result\" href=\"category-one/article-one\">Article One</a><span class=\"rs-text-result-date\">01.01.2017</span></li></ol>"
],
@@ -26,7 +26,7 @@
[
"comments"
],
"search": "One"
"search": "one"
},
"<h2 class=\"rs-title-result\">Comments</h2><ol class=\"rs-list-result\"><li><a class=\"rs-link-result\" href=\"category-one/article-one#comment-1\">Comment One</a><span class=\"rs-text-result-date\">01.01.2016</span></li></ol>"
],
@@ -38,7 +38,7 @@
"categories",
"comments"
],
"search": "One"
"search": "one"
},
"<h2 class=\"rs-title-result\">Articles</h2><ol class=\"rs-list-result\"><li><a class=\"rs-link-result\" href=\"category-one/article-one\">Article One</a><span class=\"rs-text-result-date\">01.01.2017</span></li></ol><h2 class=\"rs-title-result\">Categories</h2><ol class=\"rs-list-result\"><li><a class=\"rs-link-result\" href=\"category-one\">Category One</a><span class=\"rs-text-result-date\">01.01.2017</span></li></ol><h2 class=\"rs-title-result\">Comments</h2><ol class=\"rs-list-result\"><li><a class=\"rs-link-result\" href=\"category-one/article-one#comment-1\">Comment One</a><span class=\"rs-text-result-date\">01.01.2016</span></li></ol>"
]
@@ -47,6 +47,7 @@ public function setUp() : void
[
'title' => 'Category One',
'alias' => 'category-one',
'keywords' => 'category, one',
'date' => 1451602800
])
->save();
@@ -56,6 +57,7 @@ public function setUp() : void
[
'title' => 'Category Two',
'alias' => 'category-two',
'keywords' => 'category, two',
'date' => 1454281200
])
->save();
@@ -65,6 +67,7 @@ public function setUp() : void
[
'title' => 'Category Three',
'alias' => 'category-three',
'keywords' => 'category, three',
'status' => 0,
'date' => 1456786800
])
@@ -75,6 +78,7 @@ public function setUp() : void
[
'title' => 'Article One',
'alias' => 'article-one',
'keywords' => 'article, one',
'category' => $categoryOne->id,
'date' => 1451602800
])
@@ -85,6 +89,7 @@ public function setUp() : void
[
'title' => 'Article Two',
'alias' => 'article-two',
'keywords' => 'article, two',
'category' => $categoryOne->id,
'date' => 1454281200
])
@@ -95,6 +100,7 @@ public function setUp() : void
[
'title' => 'Article Three',
'alias' => 'article-three',
'keywords' => 'article, three',
'status' => 0,
'date' => 1456786800
])
@@ -36,17 +36,15 @@ public function setUp() : void
->set(
[
'title' => 'Article One',
'alias' => 'article-one',
'language' => 'en'
'alias' => 'article-one'
])
->save();
Db::forTablePrefix('articles')
->create()
->set(
[
'title' => 'Article Two',
'alias' => 'article-two',
'language' => 'en'
'alias' => 'article-two'
])
->save();
}
@@ -36,15 +36,17 @@ public function setUp() : void
->set(
[
'title' => 'Category One',
'alias' => 'category-one'
'alias' => 'category-one',
'keywords' => 'category, one'
])
->save();
Db::forTablePrefix('categories')
->create()
->set(
[
'title' => 'Category Two',
'alias' => 'category-two'
'alias' => 'category-two',
'keywords' => 'category, two'
])
->save();
$articleOne = Db::forTablePrefix('articles')->create();
@@ -53,6 +55,7 @@ public function setUp() : void
[
'title' => 'Article One',
'alias' => 'article-one',
'keywords' => 'article, one',
'category' => $categoryOne->id
])
->save();
@@ -62,6 +65,7 @@ public function setUp() : void
[
'title' => 'Article Two',
'alias' => 'article-two',
'keywords' => 'article, one',
'category' => $categoryOne->id
])
->save();
@@ -64,7 +64,7 @@ public function setUp() : void
'title' => 'Category Two',
'alias' => 'category-two',
'description' => 'Category Two',
'keywords' => 'Category Two',
'keywords' => 'category, two',
'robots' => 1
])
->save();
@@ -93,7 +93,7 @@ public function setUp() : void
'title' => 'Article Two',
'alias' => 'article-two',
'description' => 'Article Two',
'keywords' => 'Article Two',
'keywords' => 'article, two',
'robots' => 0,
'category' => $categoryTwo->id
])
@@ -48,6 +48,7 @@ public function setUp() : void
[
'title' => 'Category One',
'alias' => 'category-one',
'keywords' => 'category, one',
'date' => 1483225200
])
->save();
@@ -57,6 +58,7 @@ public function setUp() : void
[
'title' => 'Article One',
'alias' => 'article-one',
'keywords' => 'article, one',
'category' => $categoryOne->id,
'date' => 1483225200
])

0 comments on commit 34637c9

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