Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens authored and davist11 committed Oct 1, 2021
1 parent 99c6e9a commit 055ede4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/unit/EventHandlersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function _after()
Craft::$app->getSections()->deleteSection($section);

$field = Craft::$app->getFields()->getFieldByHandle('entryField');
if($field) {
if ($field) {
Craft::$app->getFields()->deleteField($field);
}
}
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/IndexControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ class IndexControllerTest extends Unit

protected function _before()
{

$section = Craft::$app->getSections()->getSectionByHandle('news');
if($section) {
if ($section) {
Craft::$app->getSections()->deleteSection($section);
}

Expand Down
5 changes: 2 additions & 3 deletions tests/unit/SearchableBehaviorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ protected function _before()
{
parent::_before();
$section = Craft::$app->getSections()->getSectionByHandle('news');
if($section) {
if ($section) {
Craft::$app->getSections()->deleteSection($section);
}


$section = new Section([
'name' => 'News',
'handle' => 'news',
Expand Down Expand Up @@ -119,7 +118,7 @@ public function _after()
Craft::$app->getSections()->deleteSection($section);

$field = Craft::$app->getFields()->getFieldByHandle('entryField');
if($field) {
if ($field) {
Craft::$app->getFields()->deleteField($field);
}
}
Expand Down

0 comments on commit 055ede4

Please sign in to comment.