chill-bundles/src/Bundle/ChillMainBundle/Test/PrepareScopeTrait.php

43 lines
845 B
PHP

<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Test;
/**
* A trait to prepare center.
*
* **Usage :** You must set up trait with `setUpTrait` before use
* and use tearDownTrait after usage.
*
* @codeCoverageIgnore
*
* @deprecated use PrepareCircleTrait instead
*/
trait PrepareScopeTrait
{
use PrepareCircleTrait;
/**
* prepare a mocked center, with and id and name given.
*
* @param int $id
* @param string $name
*
* @return \Chill\MainBundle\Entity\Center
*
* @deprecated
*/
protected function prepareScope($id, $name)
{
return $this->prepareCircle($id, $name);
}
}