forked from baserproject/basercms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '5.1.x' of github.com:baserproject/basercms into 5.1.x
- Loading branch information
Showing
14 changed files
with
88 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -411,18 +411,6 @@ public function testCreateYearMonthDayCondition() | |
$this->assertEquals("01", $result['DAY(BlogPosts.posted)']); | ||
} | ||
|
||
/** | ||
* 作成者の条件を作成する | ||
*/ | ||
public function testCreateAuthorCondition() | ||
{ | ||
//データ 生成 | ||
UserFactory::make(['id' => 1, 'name' => 'test name', 'email' => '[email protected]'])->persist(); | ||
//戻り値を確認 | ||
$result = $this->BlogPostsService->createAuthorCondition([], "test name"); | ||
$this->assertEquals($result["BlogPosts.user_id"], 1); | ||
} | ||
|
||
/** | ||
* 並び替え設定を生成する | ||
*/ | ||
|
@@ -965,7 +953,7 @@ public function testGetIndexByAuthor() | |
|
||
// サービスメソッドを呼ぶ | ||
// test author1 の記事を取得、id昇順 | ||
$result = $this->BlogPostsService->getIndexByAuthor('test author1', [ | ||
$result = $this->BlogPostsService->getIndexByAuthor(2, [ | ||
'direction' => 'ASC', | ||
'order' => 'id', | ||
]); | ||
|
@@ -984,7 +972,7 @@ public function testGetIndexByAuthor() | |
|
||
// サービスメソッドを呼ぶ | ||
// 記事が存在しない | ||
$result = $this->BlogPostsService->getIndexByAuthor('test author3', []); | ||
$result = $this->BlogPostsService->getIndexByAuthor(4, []); | ||
|
||
// 戻り値を確認 | ||
// 指定した author の記事が存在しない | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.