mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-05 01:24:38 +08:00
Updated activities table format
Renamed some columns to be more generic and applicable. Removed now redundant book_id column. Allowed nullable entity morph columns for non-entity activity. Ran tests and made required changes.
This commit is contained in:
@ -53,9 +53,9 @@ abstract class TestCase extends BaseTestCase
|
||||
* Assert that an activity entry exists of the given key.
|
||||
* Checks the activity belongs to the given entity if provided.
|
||||
*/
|
||||
protected function assertActivityExists(string $key, Entity $entity = null)
|
||||
protected function assertActivityExists(string $type, Entity $entity = null)
|
||||
{
|
||||
$detailsToCheck = ['key' => $key];
|
||||
$detailsToCheck = ['type' => $type];
|
||||
|
||||
if ($entity) {
|
||||
$detailsToCheck['entity_type'] = $entity->getMorphClass();
|
||||
|
Reference in New Issue
Block a user