public function testFieldValueZeroLength()
{
$this->setExpectedException('LogicException', 'Field value for substitution must be non-zero in length: 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();
}