From 956811167f4ccf43f16eb4a40e3317909413be57 Mon Sep 17 00:00:00 2001 From: Jason Irish Date: Wed, 4 Sep 2024 12:56:10 -0500 Subject: [PATCH] initial tests --- tests/Model/LocationCategoryTest.php | 19 +++++++++++++++++++ tests/Model/LocationTest.php | 19 +++++++++++++++++++ tests/Model/location-category.yml | 3 +++ tests/Model/location.yml | 3 +++ 4 files changed, 44 insertions(+) create mode 100644 tests/Model/LocationCategoryTest.php create mode 100644 tests/Model/LocationTest.php create mode 100644 tests/Model/location-category.yml create mode 100644 tests/Model/location.yml diff --git a/tests/Model/LocationCategoryTest.php b/tests/Model/LocationCategoryTest.php new file mode 100644 index 0000000..fb9a040 --- /dev/null +++ b/tests/Model/LocationCategoryTest.php @@ -0,0 +1,19 @@ +objFromFixture(LocationCategory::class, 'one'); + $fields = $object->getCMSFields(); + $this->assertInstanceOf(FieldList::class, $fields); + } +} diff --git a/tests/Model/LocationTest.php b/tests/Model/LocationTest.php new file mode 100644 index 0000000..e6e8e55 --- /dev/null +++ b/tests/Model/LocationTest.php @@ -0,0 +1,19 @@ +objFromFixture(Location::class, 'one'); + $fields = $object->getCMSFields(); + $this->assertInstanceOf(FieldList::class, $fields); + } +} diff --git a/tests/Model/location-category.yml b/tests/Model/location-category.yml new file mode 100644 index 0000000..cc96fab --- /dev/null +++ b/tests/Model/location-category.yml @@ -0,0 +1,3 @@ +Dynamic\Elements\Locations\Model\LocationCategory: + one: + Title: "Location Category One" diff --git a/tests/Model/location.yml b/tests/Model/location.yml new file mode 100644 index 0000000..84dbc6c --- /dev/null +++ b/tests/Model/location.yml @@ -0,0 +1,3 @@ +Dynamic\Elements\Locations\Model\Location: + one: + Title: "Location One"