diff --git a/modules/cms/classes/CmsObjectCollection.php b/modules/cms/classes/CmsObjectCollection.php index b89703d4d..b79974ec1 100644 --- a/modules/cms/classes/CmsObjectCollection.php +++ b/modules/cms/classes/CmsObjectCollection.php @@ -63,7 +63,7 @@ class CmsObjectCollection extends CollectionBase * @param string $value * @return static */ - public function whereComponent($components, $property, $value, $strict = true) + public function whereComponent($components, $property, $value, $strict = false) { return $this->filter(function($object) use ($components, $property, $value, $strict) { diff --git a/tests/unit/cms/classes/CmsObjectQueryTest.php b/tests/unit/cms/classes/CmsObjectQueryTest.php index 65ca650b3..ae4d5d8dd 100644 --- a/tests/unit/cms/classes/CmsObjectQueryTest.php +++ b/tests/unit/cms/classes/CmsObjectQueryTest.php @@ -13,8 +13,6 @@ class CmsObjectQueryTest extends TestCase public function testWhereComponent() { - include_once base_path() . '/tests/fixtures/plugins/october/tester/components/Archive.php'; - $pages = Page::whereComponent('testArchive', 'posts-per-page', '6'); $this->assertCount(1, $pages->all());