예제 #1
0
 public function testGetSetApplicationAndEnv()
 {
     $this->assertSame($this->appMock, $this->testInstance->getApplication());
     $this->appMock->expects($this->once())->method('make')->with('view')->will($this->returnValue($this->viewMock));
     $this->assertSame($this->viewMock, $this->testInstance->getEnvironment());
     $this->testInstance->setEnvironment($this->viewMock);
     $this->assertSame($this->viewMock, $this->testInstance->getEnvironment());
 }
예제 #2
0
 public function testGetApplication()
 {
     $application = $this->_object->getApplication();
     $this->assertInstanceOf('Magento\\TestFramework\\Application', $application);
     $this->assertStringStartsWith(__DIR__ . '/sandbox-mysql-', $application->getInstallDir());
     $this->assertInstanceOf('Magento\\TestFramework\\Db\\Mysql', $application->getDbInstance());
     $this->assertSame($application, $this->_object->getApplication());
 }
예제 #3
0
 public function testGetApplication()
 {
     $this->assertSame($this->application, $this->_object->getApplication());
 }