for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Firesphere\SolrCompatibility\Tests;
use Firesphere\SolrCompatibility\Extensions\SolrCoreServiceExtension;
use Firesphere\SolrSearch\Services\SolrCoreService;
use SilverStripe\Dev\SapphireTest;
class SolrCoreServiceExtensionTest extends SapphireTest
{
public function testCoreIsActive()
$service = new SolrCoreService();
$extension = new SolrCoreServiceExtension();
$extension->setOwner($service);
$this->assertGreaterThan(
$extension->coreIsActive('CircleCITestIndex')->getUptime(),
Firesphere\SolrCompatibi...tension::coreIsActive()
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
/** @scrutinizer ignore-deprecated */ $extension->coreIsActive('CircleCITestIndex')->getUptime(),
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.
$service->coreStatus('CircleCITestIndex')->getUptime()
);
}
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.