diff --git a/plugins/SegmentEditor/javascripts/Segmentation.js b/plugins/SegmentEditor/javascripts/Segmentation.js index 5193eacccd7..1a3af211a4e 100644 --- a/plugins/SegmentEditor/javascripts/Segmentation.js +++ b/plugins/SegmentEditor/javascripts/Segmentation.js @@ -1195,6 +1195,10 @@ $(document).ready(function() { return this.impl.getSegment(); }, + setSegment: function (segment) { + return this.impl.setSegment(segment); + }, + rebuild: function () { this.impl.setAvailableSegments(this.props.availableSegments); this.impl.initHtml(); diff --git a/tests/PHPUnit/Fixtures/OmniFixture.php b/tests/PHPUnit/Fixtures/OmniFixture.php index e9de77b6745..e11096c2d73 100644 --- a/tests/PHPUnit/Fixtures/OmniFixture.php +++ b/tests/PHPUnit/Fixtures/OmniFixture.php @@ -9,6 +9,7 @@ use Piwik\Date; use Piwik\Tracker\Visit; +use \ReflectionClass; /** * This fixture is the combination of every other fixture defined by Piwik. Should be used @@ -42,6 +43,11 @@ public function __construct() && $className != "Piwik_Test_Fixture_SqlDump" && $className != "Piwik\\Tests\\Fixtures\\UpdaterTestFixture" ) { + $klassReflect = new ReflectionClass($className); + if (strpos($klassReflect->getFilename(), "tests/PHPUnit/UI")) { + continue; + } + $fixture = new $className(); if (!property_exists($fixture, 'dateTime')) { continue;