Skip to content

Commit

Permalink
refs #4996 do not igonre the contents fixture in ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Sep 18, 2014
1 parent 14a920f commit f328ff5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Contents/tests/ContentsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Piwik\Plugins\Contents\tests;

use Piwik\Tests\IntegrationTestCase;
use Piwik\Plugins\Contents\tests\fixtures\TwoVisitsWithContents;
use Piwik\Plugins\Contents\tests\Fixtures\TwoVisitsWithContents;

/**
* Testing Contents
Expand Down
3 changes: 3 additions & 0 deletions tests/PHPUnit/Fixtures/OmniFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function __construct()

$classes = get_declared_classes();
sort($classes);

foreach ($classes as $className) {
if (is_subclass_of($className, 'Piwik\\Tests\\Fixture')
&& !is_subclass_of($className, __CLASS__)
Expand All @@ -49,10 +50,12 @@ public function __construct()
&& $className != "Piwik\\Tests\\Fixtures\\UpdaterTestFixture"
&& $className != "Piwik\\Tests\\Fixtures\\UITestFixture"
) {

$klassReflect = new ReflectionClass($className);
if (!strpos($klassReflect->getFilename(), "tests/PHPUnit/Fixtures")
&& $className != "CustomAlerts"
&& $className != "Piwik\\Plugins\\Insights\\tests\\Fixtures\\SomeVisitsDifferentPathsOnTwoDays"
&& $className != "Piwik\\Plugins\\Contents\\tests\\Fixtures\\TwoVisitsWithContents"
) {
continue;
}
Expand Down

0 comments on commit f328ff5

Please sign in to comment.