| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | public function testShouldGetAnAttributeModel() |
||
| 13 | { |
||
| 14 | $mock = $this->getMockBuilder(AbstractAttributeCommand::class) |
||
| 15 | ->disableOriginalConstructor() |
||
| 16 | ->setMethods(array('getApplication')) |
||
| 17 | ->getMockForAbstractClass(); |
||
| 18 | |||
| 19 | $mock |
||
| 20 | ->expects($this->once()) |
||
| 21 | ->method('getApplication') |
||
| 22 | ->will($this->returnValue($this->getApplication())); |
||
| 23 | |||
| 24 | $result = $mock->getAttribute('catalog_product', 'status'); |
||
| 25 | |||
| 26 | $this->assertInstanceOf('\Magento\Eav\Model\Entity\Attribute\AbstractAttribute', $result); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |