]> git.mxchange.org Git - friendica.git/commitdiff
Add yet more pconfig debug to testApiGetUserWithCustomFrioSchema
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 8 Jul 2018 07:07:38 +0000 (03:07 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 16 Jul 2018 23:38:16 +0000 (19:38 -0400)
tests/ApiTest.php

index c8443512c8a461e417b5992c383a608e35f94809..7e7aeea654d6b456f12cdd5faffc9afa0bc5b855 100644 (file)
@@ -719,10 +719,15 @@ class ApiTest extends DatabaseTest
         */
        public function testApiGetUserWithCustomFrioSchema()
        {
-               PConfig::set($this->selfUser['id'], 'frio', 'schema', '---');
-               PConfig::set($this->selfUser['id'], 'frio', 'nav_bg', '#123456');
-               PConfig::set($this->selfUser['id'], 'frio', 'link_color', '#123456');
-               PConfig::set($this->selfUser['id'], 'frio', 'background_color', '#123456');
+               var_dump($this->app->mode, \Friendica\App::MODE_DBCONFIGAVAILABLE, $this->app->mode & \Friendica\App::MODE_DBCONFIGAVAILABLE);
+
+               $ret1 = PConfig::set($this->selfUser['id'], 'frio', 'schema', '---');
+               $ret2 = PConfig::set($this->selfUser['id'], 'frio', 'nav_bg', '#123456');
+               $ret3 = PConfig::set($this->selfUser['id'], 'frio', 'link_color', '#123456');
+               $ret4 = PConfig::set($this->selfUser['id'], 'frio', 'background_color', '#123456');
+
+               var_dump($ret1, $ret2, $ret3, $ret4, dba::inArray(dba::select('pconfig', [])));
+
                $user = api_get_user($this->app);
                $this->assertSelfUser($user);
                $this->assertEquals('123456', $user['profile_sidebar_fill_color']);