Skip to content

Commit

Permalink
Refactor integration tests to use fixtures generated on the fly
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Aug 8, 2018
1 parent 160b64c commit 7db612c
Show file tree
Hide file tree
Showing 12 changed files with 1,764 additions and 1,252 deletions.
20 changes: 20 additions & 0 deletions lib/Core/Site/Settings.php
Expand Up @@ -35,6 +35,13 @@ public function __construct($prioritizedLanguages, $useAlwaysAvailable, $rootLoc
$this->rootLocationId = $rootLocationId;
}

/**
* @throws \eZ\Publish\API\Repository\Exceptions\PropertyNotFoundException
*
* @param $property
*
* @return bool|int|string|string[]
*/
public function __get($property)
{
switch ($property) {
Expand All @@ -49,11 +56,24 @@ public function __get($property)
throw new PropertyNotFoundException($property, get_class($this));
}

/**
* @throws \eZ\Publish\API\Repository\Exceptions\PropertyReadOnlyException
*
* @param $property
* @param $value
*/
public function __set($property, $value)
{
throw new PropertyReadOnlyException($property, get_class($this));
}

/**
* @throws \eZ\Publish\API\Repository\Exceptions\PropertyNotFoundException
*
* @param $property
*
* @return bool
*/
public function __isset($property)
{
switch ($property) {
Expand Down
1 change: 1 addition & 0 deletions phpunit-integration-legacy.xml
Expand Up @@ -12,6 +12,7 @@
</php>
<testsuites>
<testsuite name="Netgen's Site API for eZ Platform integration tests">
<file>tests/lib/Integration/PrepareFixturesTest.php</file>
<file>tests/lib/Integration/SiteTest.php</file>
<file>tests/lib/Integration/FilterServiceTest.php</file>
<file>tests/lib/Integration/FindServiceTest.php</file>
Expand Down

0 comments on commit 7db612c

Please sign in to comment.