Bugzilla – Attachment 74384 Details for
Bug 20402
OAuth2 client credentials grant for REST API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20402: Use TestBuilder->build_object in oauth.t
Bug-20402-Use-TestBuilder-buildobject-in-oautht.patch (text/plain), 1.04 KB, created by
Tomás Cohen Arazi (tcohen)
on 2018-04-17 19:35:26 UTC
(
hide
)
Description:
Bug 20402: Use TestBuilder->build_object in oauth.t
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2018-04-17 19:35:26 UTC
Size:
1.04 KB
patch
obsolete
>From ebc52c7b2d82362eb0ad0e223f60b6c9c20b897b Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Tue, 17 Apr 2018 19:07:47 +0200 >Subject: [PATCH] Bug 20402: Use TestBuilder->build_object in oauth.t > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/api/v1/oauth.t | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/api/v1/oauth.t b/t/db_dependent/api/v1/oauth.t >index 693bccb3e7..eb95195b24 100755 >--- a/t/db_dependent/api/v1/oauth.t >+++ b/t/db_dependent/api/v1/oauth.t >@@ -35,14 +35,13 @@ subtest '/oauth/token tests' => sub { > > $schema->storage->txn_begin; > >- my $borrower = $builder->build({ >- source => 'Borrower', >+ my $patron = $builder->build_object({ >+ class => 'Koha::Patrons', > value => { > surname => 'Test OAuth', > flags => 0, > }, > }); >- my $patron = Koha::Patrons->find($borrower->{borrowernumber}); > > # Missing parameter grant_type > $t->post_ok('/api/v1/oauth/token') >-- >2.17.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20402
:
72865
|
72874
|
72886
|
72887
|
72888
|
72892
|
72893
|
72894
|
73086
|
73087
|
74009
|
74018
|
74050
|
74051
|
74069
|
74070
|
74088
|
74365
|
74366
|
74367
|
74368
|
74369
|
74380
|
74381
|
74382
|
74383
|
74384
|
74385
|
74386
|
74600
|
75026
|
75027
|
75028
|
75029
|
75030
|
75031
|
75032
|
75033
|
75189