]> git.mxchange.org Git - friendica.git/commitdiff
And again
authorMichael <heluecht@pirati.ca>
Tue, 27 Jul 2021 06:35:44 +0000 (06:35 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 27 Jul 2021 06:35:44 +0000 (06:35 +0000)
tests/src/Util/ProfilerTest.php

index 6847e63f3d45febd5b5a81b57cd6256533ead5d5..da0546d1bed9bcf1ac58d83ce6a63e5dbb21489a 100644 (file)
@@ -250,12 +250,11 @@ class ProfilerTest extends MockedTest
                            ->once();
 
                $profiler = new Profiler($configCache);
-               $profiler->startRecording('network');
 
                self::assertFalse($profiler->isRendertime());
                self::assertEmpty($profiler->getRendertimeString());
 
-               $profiler->stopRecording('test1');
+               $profiler->saveTimestamp(time(), 'network', 'test1');
 
                $config = \Mockery::mock(IConfig::class);
                $config->shouldReceive('get')
@@ -283,8 +282,7 @@ class ProfilerTest extends MockedTest
 
                $profiler->update($config);
 
-               $profiler->startRecording('database');
-               $profiler->stopRecording('test2');
+               $profiler->saveTimestamp(time(), 'database', 'test2');
 
                self::assertTrue($profiler->isRendertime());
                $output = $profiler->getRendertimeString();