Inheritance: extends App\Entities\Setting\AbstractSettingEntity
Example #1
0
 public function test_Should_SetAndGetUrl()
 {
     $appSettingEntity = new AppSettingEntity();
     $appSettingEntity->setUrl('http://example.com');
     $url = $appSettingEntity->getUrl();
     $this->assertEquals('http://example.com', $url);
 }
Example #2
0
 public function all()
 {
     $url = $this->reader->getConfig('APP_URL');
     $appSetting = new AppSettingEntity();
     $appSetting->setUrl($url);
     return $appSetting;
 }