Skip to content

Commit

Permalink
remove associated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
l0gicgate committed Feb 23, 2019
1 parent f88cd3f commit f7fd9a6
Showing 1 changed file with 0 additions and 57 deletions.
57 changes: 0 additions & 57 deletions tests/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,63 +71,6 @@ public function testGetRouter()
$this->assertEquals($router, $app->getRouter());
}

/********************************************************************************
* Settings management methods
*******************************************************************************/

public function testHasSetting()
{
$responseFactory = $this->getResponseFactory();
$app = new App($responseFactory);
$this->assertTrue($app->hasSetting('httpVersion'));
$this->assertFalse($app->hasSetting('foo'));
}

public function testGetSettings()
{
$responseFactory = $this->getResponseFactory();
$app = new App($responseFactory);
$appSettings = $app->getSettings();
$this->assertAttributeEquals($appSettings, 'settings', $app);
}

public function testGetSettingExists()
{
$responseFactory = $this->getResponseFactory();
$app = new App($responseFactory);
$this->assertEquals('1.1', $app->getSetting('httpVersion'));
}

public function testGetSettingNotExists()
{
$responseFactory = $this->getResponseFactory();
$app = new App($responseFactory);
$this->assertNull($app->getSetting('foo'));
}

public function testGetSettingNotExistsWithDefault()
{
$responseFactory = $this->getResponseFactory();
$app = new App($responseFactory);
$this->assertEquals('what', $app->getSetting('foo', 'what'));
}

public function testAddSettings()
{
$responseFactory = $this->getResponseFactory();
$app = new App($responseFactory);
$app->addSettings(['foo' => 'bar']);
$this->assertAttributeContains('bar', 'settings', $app);
}

public function testAddSetting()
{
$responseFactory = $this->getResponseFactory();
$app = new App($responseFactory);
$app->addSetting('foo', 'bar');
$this->assertAttributeContains('bar', 'settings', $app);
}

/********************************************************************************
* Router proxy methods
*******************************************************************************/
Expand Down

0 comments on commit f7fd9a6

Please sign in to comment.