]> git.mxchange.org Git - friendica.git/commitdiff
Remove api test pconfig debug
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 8 Jul 2018 07:28:29 +0000 (03:28 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 16 Jul 2018 23:38:17 +0000 (19:38 -0400)
include/api.php
tests/ApiTest.php

index 986789983453275ee8f6e19463709586ee0e1754..d307afa953639ed65a4bbe15e015f090cc23cda0 100644 (file)
@@ -773,8 +773,6 @@ function api_get_user(App $a, $contact_id = null)
                if ($theme_info['theme'] === 'frio') {
                        $schema = PConfig::get($ret['uid'], 'frio', 'schema');
 
-                       var_dump($ret['uid'], $schema, $a->config, dba::inArray(dba::select('pconfig', [])));
-
                        if ($schema && ($schema != '---')) {
                                if (file_exists('view/theme/frio/schema/'.$schema.'.php')) {
                                        $schemefile = 'view/theme/frio/schema/'.$schema.'.php';
index e94ab05ed4e970ac632e7203fc6920665da9bdc6..c33ee6bfaf1d55b479f11ba0169a7e7304906bee 100644 (file)
@@ -719,15 +719,10 @@ class ApiTest extends DatabaseTest
         */
        public function testApiGetUserWithCustomFrioSchema()
        {
-               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']);