Skip to content

Commit

Permalink
fixing version LA4 for php7
Browse files Browse the repository at this point in the history
  • Loading branch information
David Mathews committed Aug 15, 2016
1 parent 39b6c94 commit c1926f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Illuminate\Database\Query\Builder as QueryBuilder;

class Bool extends Field {
class Boolean extends Field {

/**
* The value (used in filter)
Expand Down
2 changes: 1 addition & 1 deletion src/Frozennode/Administrator/Fields/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Factory {
'time' => 'Frozennode\\Administrator\\Fields\\Time',
'datetime' => 'Frozennode\\Administrator\\Fields\\Time',
'number' => 'Frozennode\\Administrator\\Fields\\Number',
'bool' => 'Frozennode\\Administrator\\Fields\\Bool',
'bool' => 'Frozennode\\Administrator\\Fields\\Boolean',
'enum' => 'Frozennode\\Administrator\\Fields\\Enum',
'image' => 'Frozennode\\Administrator\\Fields\\Image',
'file' => 'Frozennode\\Administrator\\Fields\\File',
Expand Down
4 changes: 2 additions & 2 deletions tests/Fields/BoolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function setUp()
$this->config = m::mock('Frozennode\Administrator\Config\Model\Config');
$this->db = m::mock('Illuminate\Database\DatabaseManager');
$options = array('field_name' => 'field', 'type' => 'bool');
$this->field = m::mock('Frozennode\Administrator\Fields\Bool', array($this->validator, $this->config, $this->db, $options))->makePartial();
$this->field = m::mock('Frozennode\Administrator\Fields\Boolean', array($this->validator, $this->config, $this->db, $options))->makePartial();
}

/**
Expand Down Expand Up @@ -99,4 +99,4 @@ public function testFilterQueryNoValue()
$this->field->shouldReceive('getOption')->once()->andReturn('');
$this->field->filterQuery($query);
}
}
}

0 comments on commit c1926f0

Please sign in to comment.