Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandr Fanamurov committed Apr 6, 2018
1 parent cff3e6a commit 9dabf32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/AdminMethodsStore.php
Expand Up @@ -24,13 +24,13 @@ trait AdminMethodsStore

/**
* @param Component $config
* @return bool
* @return AdminMethodsStore
*/
public function setConfig($config)
{
$this->config = $config;

return true;
return $this;
}

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

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

public function testShareMethods()
{
$test = new AdminMethodsStoreMock();
Expand Down

0 comments on commit 9dabf32

Please sign in to comment.