Conditions | 1 |
Paths | 1 |
Total Lines | 29 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function testOptions() |
||
19 | { |
||
20 | $processor = new Processor(); |
||
21 | |||
22 | $config = $processor->processConfiguration(new Configuration(), array(array( |
||
23 | 'api' => array( |
||
24 | 'app_id' => 'foo_id', |
||
25 | 'app_secret' => 'bar_secret', |
||
26 | ), |
||
27 | ))); |
||
28 | |||
29 | $expected = array( |
||
30 | 'api' => array( |
||
31 | 'app_id' => 'foo_id', |
||
32 | 'app_secret' => 'bar_secret', |
||
33 | 'permissions' => array('public_profile', 'user_likes'), |
||
34 | ), |
||
35 | 'auth_success' => array( |
||
36 | 'route' => null, |
||
37 | 'route_parameters' => array(), |
||
38 | ), |
||
39 | 'auth_error' => array( |
||
40 | 'route' => null, |
||
41 | 'route_parameters' => array(), |
||
42 | ), |
||
43 | ); |
||
44 | |||
45 | $this->assertSame($expected, $config); |
||
46 | } |
||
47 | } |
||
48 |