feat: MCP tools for events (list/get/create/update/delete/done/ack); EventRules shared by /api and manual
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BCrwHHnGCB5XH968Nxokqw
This commit is contained in:
@@ -126,12 +126,13 @@ class EventUpserterTest extends TestCase
|
||||
$this->assertNull($event->due_date);
|
||||
}
|
||||
|
||||
public function test_withdraw_marks_withdrawn_and_reports_missing(): void
|
||||
public function test_withdraw_marks_withdrawn(): void
|
||||
{
|
||||
$this->upserter->upsert($this->source, [$this->item()]);
|
||||
|
||||
$this->assertTrue($this->upserter->withdraw($this->source, 'document:918', 'expiry'));
|
||||
$this->upserter->withdraw($this->upserter->find($this->source, 'document:918', 'expiry'));
|
||||
|
||||
$this->assertSame(EventState::Withdrawn, Event::sole()->state);
|
||||
$this->assertFalse($this->upserter->withdraw($this->source, 'document:918', 'other'));
|
||||
$this->assertNull($this->upserter->find($this->source, 'document:918', 'other'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user