1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 13:34:04 +00:00

Rename method to central

Signed-off-by: michael lundbøl <michael.lundboel@gmail.com>
This commit is contained in:
michael lundbøl 2020-10-24 16:14:45 +02:00
parent e5700e7f72
commit 4ad4e3421d
No known key found for this signature in database
GPG key ID: 213C976E2CFD1CAF
2 changed files with 5 additions and 5 deletions

View file

@ -89,7 +89,7 @@ class Tenancy
* @param callable $callback
* @return mixed
*/
public function runGlobal(callable $callback)
public function central(callable $callback)
{
$oldTenant = $this->tenant;

View file

@ -73,7 +73,7 @@ class AutomaticModeTest extends TestCase
}
/** @test */
public function running_the_global_tenancy_helper_with_tenant_already_initialized()
public function running_the_central_tenancy_helper_with_tenant_already_initialized()
{
MyBootstrapper::$revertedCallCount = 0;
GlobalRun::$count = 0;
@ -90,7 +90,7 @@ class AutomaticModeTest extends TestCase
$this->assertSame('acme', app('tenancy_initialized_for_tenant'));
tenancy()->runGlobal(function () {
tenancy()->central(function () {
GlobalRun::$count = 1;
});
@ -100,7 +100,7 @@ class AutomaticModeTest extends TestCase
}
/** @test */
public function running_the_global_tenancy_helper_with_tenant_not_already_initialized()
public function running_the_central_tenancy_helper_with_tenant_not_already_initialized()
{
MyBootstrapper::$revertedCallCount = 0;
GlobalRun::$count = 0;
@ -109,7 +109,7 @@ class AutomaticModeTest extends TestCase
MyBootstrapper::class,
]]);
tenancy()->runGlobal(function () {
tenancy()->central(function () {
GlobalRun::$count = 1;
});