Skip to content

Commit

Permalink
modified
Browse files Browse the repository at this point in the history
  • Loading branch information
thangnn committed Oct 17, 2024
1 parent f9e1fd6 commit da04bb5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ public function test_getContentsTemplateRelativePath()
public function test_findByUrl($url, $expected)
{
//generate data
BlogContentFactory::make(['id' => 60])->persist();
ContentFactory::make(['id' => 60, 'type' => 'BlogContent', 'entity_id' => 60, 'title' => 'url test', 'url' => '/test', 'site_id' => 60])->persist();
ContentFactory::make(['id' => 61, 'type' => 'BlogContent', 'entity_id' => 60,'title' => 'url demo', 'url' => '/demo', 'site_id' => 60])->persist();
SiteFactory::make(['id' => 60, 'theme' => 'BcBlog'])->persist();
BlogContentFactory::make(['id' => 1])->persist();
ContentFactory::make(['id' => 1, 'type' => 'BlogContent', 'entity_id' => 1, 'title' => 'url test', 'url' => '/test', 'site_id' => 1])->persist();
ContentFactory::make(['id' => 2, 'type' => 'BlogContent', 'entity_id' => 1,'title' => 'url demo', 'url' => '/demo', 'site_id' => 1])->persist();
SiteFactory::make(['id' => 1, 'theme' => 'BcBlog'])->persist();

$rs = $this->BlogContentsService->findByUrl($url);

Expand Down

0 comments on commit da04bb5

Please sign in to comment.