77use webfiori \file \File ;
88use webfiori \framework \cli \commands \AddCommand ;
99use webfiori \framework \ConfigController ;
10- use webfiori \framework \WebFioriApp ;
10+ use webfiori \framework \App ;
1111
1212/**
1313 * Description of TestAddCommand
@@ -36,7 +36,7 @@ public function test00() {
3636 * @test
3737 */
3838 public function testAddDBConnection00 () {
39- $ runner = WebFioriApp ::getRunner ();
39+ $ runner = App ::getRunner ();
4040 $ runner ->setInputs ([
4141 '0 ' ,
4242 '0 ' ,
@@ -52,7 +52,7 @@ public function testAddDBConnection00() {
5252 'add '
5353 ]);
5454 $ this ->assertEquals (0 , $ runner ->start ());
55- $ connName = 'db-connection- ' .count (WebFioriApp ::getAppConfig ()->getDBConnections ());
55+ $ connName = 'db-connection- ' .count (App ::getAppConfig ()->getDBConnections ());
5656 $ this ->assertEquals ([
5757 "What would you like to add? \n" ,
5858 "0: New database connection. \n" ,
@@ -77,7 +77,7 @@ public function testAddDBConnection00() {
7777 * @test
7878 */
7979 public function testAddDBConnection01 () {
80- $ runner = WebFioriApp ::getRunner ();
80+ $ runner = App ::getRunner ();
8181 $ runner ->setInputs ([
8282 '0 ' ,
8383 '0 ' ,
@@ -94,7 +94,7 @@ public function testAddDBConnection01() {
9494 'add '
9595 ]);
9696 $ this ->assertEquals (0 , $ runner ->start ());
97- $ connName = 'db-connection- ' .count (WebFioriApp ::getAppConfig ()->getDBConnections ());
97+ $ connName = 'db-connection- ' .count (App ::getAppConfig ()->getDBConnections ());
9898 $ this ->assertEquals ([
9999 "What would you like to add? \n" ,
100100 "0: New database connection. \n" ,
@@ -121,7 +121,7 @@ public function testAddDBConnection01() {
121121 * @test
122122 */
123123 public function testAddDBConnection02 () {
124- $ runner = WebFioriApp ::getRunner ();
124+ $ runner = App ::getRunner ();
125125 $ runner ->setInputs ([
126126 '0 ' ,
127127 '0 ' ,
@@ -138,7 +138,7 @@ public function testAddDBConnection02() {
138138 'add '
139139 ]);
140140 $ this ->assertEquals (0 , $ runner ->start ());
141- $ connName = 'db-connection- ' .count (WebFioriApp ::getAppConfig ()->getDBConnections ());
141+ $ connName = 'db-connection- ' .count (App ::getAppConfig ()->getDBConnections ());
142142 $ this ->assertEquals ([
143143 "What would you like to add? \n" ,
144144 "0: New database connection. \n" ,
@@ -242,7 +242,7 @@ public function testAddLang02() {
242242 * @test
243243 */
244244 public function testAddSMTPConnection00 () {
245- $ runner = WebFioriApp ::getRunner ();
245+ $ runner = App ::getRunner ();
246246 $ runner ->setInputs ([
247247 '1 ' ,
248248 '127.0.0.1 ' ,
@@ -259,7 +259,7 @@ public function testAddSMTPConnection00() {
259259 'add '
260260 ]);
261261 $ this ->assertEquals (0 , $ runner ->start ());
262- $ connName = 'smtp-connection- ' .count (WebFioriApp ::getAppConfig ()->getAccounts ());
262+ $ connName = 'smtp-connection- ' .count (App ::getAppConfig ()->getAccounts ());
263263 $ this ->assertEquals ([
264264 "What would you like to add? \n" ,
265265 "0: New database connection. \n" ,
0 commit comments