Skip to content

Commit

Permalink
Merge pull request #11 from dennisinteractive/CMS-1926-fix-unit-tests…
Browse files Browse the repository at this point in the history
…-on-profile

[CMS-1926] Remove invalid {#parent} call from models
  • Loading branch information
evomase authored May 6, 2021
2 parents 0d196b8 + f05399f commit e25fe58
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
command: |
if [ -z "${PACKAGIST_TOKEN}" ]; then echo "Env variable PACKAGIST_TOKEN missing, get a token from packagist.org"; exit 1; fi
composer config --global --auth http-basic.repo.packagist.com dennisdigital ${PACKAGIST_TOKEN}
composer create-project dennisdigital/polaris-drupal-project:3.x-dev /var/www/polaris --stability dev --no-interaction
composer create-project dennisdigital/polaris-drupal-project:3.x-dev /var/www/polaris --stability dev --no-interaction --no-install --profile -vvv
cd /var/www/polaris
composer --profile -vvv install
- run:
name: Install profile
Expand Down
42 changes: 42 additions & 0 deletions patches/content-api-swagger-invalid-parent.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
diff --git a/lib/Model/OwnerReview.php b/lib/Model/OwnerReview.php
--- a/lib/Model/OwnerReview.php (revision 455135ec30587fa5bc1c4cfc113ca3610371c7c1)
+++ b/lib/Model/OwnerReview.php (date 1620148966560)
@@ -179,9 +179,7 @@
*/
public function listInvalidProperties()
{
- $invalidProperties = parent::listInvalidProperties();
-
- return $invalidProperties;
+ return [];
}

/**
diff --git a/lib/Model/ContentBlocksCollection.php b/lib/Model/ContentBlocksCollection.php
--- a/lib/Model/ContentBlocksCollection.php (revision 455135ec30587fa5bc1c4cfc113ca3610371c7c1)
+++ b/lib/Model/ContentBlocksCollection.php (date 1620148966565)
@@ -179,9 +179,7 @@
*/
public function listInvalidProperties()
{
- $invalidProperties = parent::listInvalidProperties();
-
- return $invalidProperties;
+ return [];
}

/**
diff --git a/lib/Model/BulkData.php b/lib/Model/BulkData.php
--- a/lib/Model/BulkData.php (revision 455135ec30587fa5bc1c4cfc113ca3610371c7c1)
+++ b/lib/Model/BulkData.php (date 1620148966554)
@@ -179,9 +179,7 @@
*/
public function listInvalidProperties()
{
- $invalidProperties = parent::listInvalidProperties();
-
- return $invalidProperties;
+ return [];
}

/**

0 comments on commit e25fe58

Please sign in to comment.