/** * @test */ public function gathering_pushed_1() { $this->post('/twilio/gathering', ['Digits' => '1', 'To' => '+81612345678'])->see('<Say')->dontSee('<Gather'); $log = GatheringLog::query()->first(); $this->assertSame('1', $log->pushed); $this->assertSame('+81612345678', $log->telephone_no); }
/** * @inheritdoc */ public function findAll() { return $this->eloquent->all()->map(function (Eloquent $log) { return new GatheringLog($log->id, new TelephoneNo($log->telephone_no), $log->pushed, $log->created_at); }); }