Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandr Fanamurov committed Apr 6, 2018
1 parent 9dabf32 commit 779ae97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Traits/AdminMethodsCreate.php
Expand Up @@ -54,7 +54,7 @@ public function create(Request $request)
use AdminMethodsStore;
};

return $trait->setConfig($this->config)->store($test);
return $trait->updateConfig($this->config)->store($test);
}

return $this->store($test);
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/AdminMethodsStore.php
Expand Up @@ -26,7 +26,7 @@ trait AdminMethodsStore
* @param Component $config
* @return AdminMethodsStore
*/
public function setConfig($config)
public function updateConfig($config)
{
$this->config = $config;

Expand Down
4 changes: 2 additions & 2 deletions tests/Traits/AdminMethodsStoreTest.php
Expand Up @@ -57,10 +57,10 @@ protected function getPackageAliases($app)
];
}

public function testSetConfig()
public function testUpdateConfig()
{
$test = new AdminMethodsStoreMock();
$this->assertNotNull($test->setConfig(new BlocksComponent()));
$this->assertNotNull($test->updateConfig(new BlocksComponent()));
}

public function testShareMethods()
Expand Down

0 comments on commit 779ae97

Please sign in to comment.