Skip to content

Commit

Permalink
Merge pull request #1577 from soyuka/proper-fix-confi
Browse files Browse the repository at this point in the history
Fix null title/description configuration (#1563 followup)
  • Loading branch information
dunglas committed Dec 20, 2017
2 parents 0748b88 + 266c01b commit 15db1f3
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,17 @@ public function testApiKeysConfig()
$this->assertTrue(isset($config['swagger']['api_keys']));
$this->assertSame($exampleConfig, $config['swagger']['api_keys'][0]);
}

/**
* Test config for empty title and description.
*/
public function testEmptyTitleDescriptionConfig()
{
$config = $this->processor->processConfiguration($this->configuration, [
'api_platform' => [],
]);

$this->assertSame($config['title'], '');
$this->assertSame($config['description'], '');
}
}

0 comments on commit 15db1f3

Please sign in to comment.