Permalink
Browse files

Fix tests

  • Loading branch information...
kiwiz committed Mar 16, 2018
1 parent c71fcc0 commit a093e48f8eac96fb315d296be0bd9967e27cc811
Showing with 3 additions and 4 deletions.
  1. +0 −1 phplib/Filter/Enricher.php
  2. +1 −1 phplib/Search/Alert.php
  3. +1 −1 tests/unit/ElementTest.php
  4. +1 −1 tests/unit/TypeModelTest.php
@@ -16,7 +16,6 @@ public static function generateDataSchema() {
$type_map = [];
foreach(Enricher::$TYPES as $type) {
$name = explode('_', $type)[0];
$type = 'FOO\\' . $type;
$type_map[$type::$TYPE] = $name;
}
return [
View
@@ -56,7 +56,7 @@ protected function _getLink(Alert $alert) {
$this->generateLink($parts[2]);
}
public function generateLink($alert_id) {
public function generateLink($alert_id, $a, $b) {
$site = SiteFinder::getCurrent();
return $site->urlFor(sprintf('alert/%d', $alert_id));
}
@@ -3,7 +3,7 @@
namespace FOO {
class TestElement extends Element {
public static $TYPE = 'x';
public static $TYPES = ['TestElement'];
public static $TYPES = [TestElement::class];
public static function generateDataSchema() {
return [
'a' => [self::T_BOOL, null, false],
@@ -2,7 +2,7 @@
namespace FOO {
class TestTypeModel extends TypeModel {
public static $TYPES = ['OneTypeModel', 'TwoTypeModel'];
public static $TYPES = [OneTypeModel::class, TwoTypeModel::class];
}
class OneTypeModel extends TestTypeModel {

0 comments on commit a093e48

Please sign in to comment.