Skip to content

Commit

Permalink
add webservice tests
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Jan 20, 2019
1 parent 8a6fd7d commit 889f6ab
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
3 changes: 3 additions & 0 deletions tests/_support/Helper/PimcoreCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function _after(\Codeception\TestInterface $test)
*/
public function _afterSuite()
{
\Pimcore::collectGarbage();
$this->clearCache();
parent::_afterSuite();
}
Expand Down Expand Up @@ -114,6 +115,8 @@ protected function bootKernelWithConfiguration($configuration)
*/
protected function clearCache($force = true)
{
\Codeception\Util\Debug::debug('[PIMCORE] Clear Cache!');

$fileSystem = new Filesystem();

try {
Expand Down
16 changes: 16 additions & 0 deletions tests/_support/Helper/PimcoreRest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace DachcomBundle\Test\Helper;

use Pimcore\Tests\Helper\PimcoreRest as PimcoreCoreRest;

class PimcoreRest extends PimcoreCoreRest
{
/**
* @inheritdoc
*/
public function _beforeSuite($settings = [])
{
parent::_beforeSuite($settings);
}
}
4 changes: 1 addition & 3 deletions tests/bundle_tests/rest.suite.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ modules:
connect_db: true
- \DachcomBundle\Test\Helper\PimcoreBundleCore:
run_installer: true
- \Pimcore\Tests\Helper\ClassManager
- \Pimcore\Tests\Helper\Model
- \Pimcore\Tests\Helper\PimcoreRest:
- \DachcomBundle\Test\Helper\PimcoreRest:
url: /webservice/rest
depends: \Pimcore\Tests\Helper\Pimcore

Expand Down

0 comments on commit 889f6ab

Please sign in to comment.