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');
 }
Exemplo n.º 2
0
 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');
 }