diff --git a/tests/functional/ContentCest.php b/tests/functional/ContentCest.php index 24693feb..2b68749f 100644 --- a/tests/functional/ContentCest.php +++ b/tests/functional/ContentCest.php @@ -192,38 +192,7 @@ public function seePromotedContentOnTopOfTheList(FunctionalTester $I) $I->see($promotedContent->translations[0]->title, '(//h2)[1]'); } - - - public function contentsAreOrderedByWeight(FunctionalTester $I) - { - $category = $I->haveContent(['type' => 'category', 'isActive' => 1]); - $route = '/' . $category->route->translations[0]['langCode'] . '/' . $category->route->translations[0]['url']; - $counter = 1; - $contents = []; - - do { - $contents[$counter] = $I->haveContent( - [ - 'isActive' => 1, - 'weight' => $counter, - 'parentId' => $category->id - ] - ); - $counter++; - } while ($counter <= 10); - - $I->wantTo('check if heavier contents go to bottom'); - $I->amOnPage($route); - $I->seeResponseCodeIs(200); - - $counter = 1; - - do { - $I->see($contents[$counter]->translations[0]->title, "(//h2)[{$counter}]"); - $counter++; - } while ($counter <= 10); - } - + public function canSeeNotPublishedCategoryAsAdmin(FunctionalTester $I) { $category = $I->haveContent(['type' => 'category', 'isActive' => 0]);