silverstripe-framework/tests/php/ORM/DBReplicaTest/TestController.php

19 lines
430 B
PHP
Raw Normal View History

2024-10-09 01:18:03 +02:00
<?php
namespace SilverStripe\ORM\Tests\DBReplicaTest;
use SilverStripe\Control\Controller;
use SilverStripe\Dev\TestOnly;
class TestController extends Controller implements TestOnly
{
public function index()
{
// Make a call to the database
TestObject::get()->count();
$response = $this->getResponse();
$response->setBody('DB_REPLICA_TEST_CONTROLLER');
return $response;
}
}