public function testFieldValueNonScalar()
{
$this->setExpectedException('LogicException', 'Field value for substitution must be a integer, float, string or boolean: field');
$mock = $this->getMockForTrait('Josegonzalez\\Upload\\File\\Path\\Basepath\\DefaultTrait');
$mock->entity = $this->getMock('Cake\\ORM\\Entity');
$mock->table = $this->getMock('Cake\\ORM\\Table');
$mock->settings = ['path' => 'webroot{DS}files{DS}{model}{DS}{field-value:field}{DS}'];
$mock->data = ['name' => 'filename'];
$mock->field = 'field';
$mock->entity->expects($this->any())->method('get')->will($this->returnValue([]));
$mock->basepath();
}