Skip to content

Commit

Permalink
WIP: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Nov 25, 2019
1 parent 11eae21 commit 0552834
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions tests/lib/SimpleSAML/XHTML/IdPDiscoTest.php
@@ -0,0 +1,68 @@
<?php

namespace SimpleSAML\Test;

use PHPUnit\Framework\TestCase;
use SimpleSAML\Configuration;

/**
* Tests for the IdPDisco class.
*
* For the full copyright and license information, please view the LICENSE file that was
* distributed with this source code.
*
* @author Tim van Dijen <tvdijen@gmail.com>
* @package simplesamlphp/simplesamlphp
*/
class IdPDiscoTest extends TestCase
{
/** @var \SimpleSAML\Metadata\MetaDataStorageHandler */
private $mhandler;

/** @var array */
private $config = [
'language' => [
'priorities' => [
'nl' => ['nl', 'en', 'de'],
'es' => ['es', 'fr', 'cz'],
],
],
'language.default' => 'nl',

'metadata.sources' => [
[
'type' => 'xml',
'file' => 'vendor/simplesamlphp/simplesamlphp-test-framework/metadata/xml/unsigned-metadata.xml'
]
],
];


/**
* @return void
*/
public function setUp()
{
$config = Configuration::loadFromArray($this->$config);

Configuration::setPreloadedConfig($config, 'config.php');

$this->mhandler = MetaDataStorageHandler::getMetadataHandler();
}


/**
*
*/
public function testPreferredTranslation()
{
}


/**
*
*/
public function testIdPSortingOrder()
{
}
}

0 comments on commit 0552834

Please sign in to comment.