public function testPropertiesActionMissingParams() { $this->_subnetManager = $this->getMockBuilder('Model\\Network\\SubnetManager')->disableOriginalConstructor()->getMock(); $this->_subnetManager->expects($this->once())->method('getSubnet')->with(null, null)->will($this->throwException(new \InvalidArgumentException())); $this->dispatch('/console/network/properties'); $this->assertApplicationException('InvalidArgumentException'); }
public function testPropertiesActionMissingParams() { $this->_subnetManager->expects($this->once())->method('getSubnet')->with(null, null)->will($this->throwException(new \InvalidArgumentException())); $this->dispatch('/console/network/properties'); $this->assertApplicationException('InvalidArgumentException'); }