Exemple #1
0
 public function testGetTypes()
 {
     $label = 'someLabel';
     $value = 'someValue';
     $this->typeModel->expects($this->once())->method('toOptionArray')->will($this->returnValue([['label' => $label, 'value' => $value]]));
     $this->typeConverter->expects($this->once())->method('createDataFromModel')->will($this->returnValue($this->type));
     $this->assertEquals([$this->type], $this->model->getTypes());
 }