Giter VIP home page Giter VIP logo

Comments (4)

wardy484 avatar wardy484 commented on May 26, 2024 1

I think you can assert errors are in the session (error bag): docs.

Alternatively, we could use ->assertSee("some error message") to validate that the error content has been displayed on the view. I'm not familiar enough with the project yet to say which would be the better solution.

from godot-asset-library-laravel.

Demetriex avatar Demetriex commented on May 26, 2024

@Calinou sorry for the ping, but do you also have problems with fields that uses SuccessRespondingUrl rule

I have entered correct url pattern, it just has RequestError cURL error 60: SSL certificate problem: unable to get local issuer certificate this is fixed with adding 'verify' => CaBundle::getSystemCaRootBundlePath() in the request options

from godot-asset-library-laravel.

Demetriex avatar Demetriex commented on May 26, 2024
array:4 [
  "_token" => "4lA4QarzhUmVfeygN6WdCKJSD5JGspG5vOnQUjk7"
  "_old_input" => array:9 [
    "title" => "My Own Asset"
    "blurb" => "One-line description of the asset"
    "description" => "A long description…"
    "tags" => "platformer, 2d, pixel-art, gdnative"
    "category" => 0
    "license" => "MIT"
    "versions[0][version_string]" => "1.0.0"
    "versions[0][godot_version]" => "3.2"
    "browse_url" => "https://github.com/user/asset"
  ]
  "_flash" => array:2 [
    "new" => []
    "old" => array:2 [
      0 => "_old_input"
      1 => "errors"
    ]
  ]
  "errors" => Illuminate\Support\ViewErrorBag {#2658
    #bags: array:1 [
      "default" => Illuminate\Support\MessageBag {#2642
        #messages: array:4 [
          "category_id" => array:1 [
            0 => "The category id field is required."
          ]
          "cost" => array:1 [
            0 => "The cost field is required."
          ]
          "browse_url" => array:1 [
            0 => "The repository URL doesn't seem to point to a valid page or resource."
          ]
          "versions" => array:1 [
            0 => "The versions field is required."
          ]
        ]
        #format: ":message"
      }
    ]
  }
]

looks like there are fields that are required that is missing.

public const ASSET_DATA = [
'title' => 'My Own Asset',
'blurb' => 'One-line description of the asset',
'description' => 'A long description…',
'tags' => 'platformer, 2d, pixel-art, gdnative',
'category' => Asset::CATEGORY_2D_TOOLS,
'license' => 'MIT',
'versions[0][version_string]' => '1.0.0',
'versions[0][godot_version]' => '3.2',
'browse_url' => 'https://github.com/user/asset',
];

from godot-asset-library-laravel.

Calinou avatar Calinou commented on May 26, 2024

@Demetriex I can't look at fixing unit tests right now. I'm looking at finally adding a Docker setup for development and production, which is more important currently.

from godot-asset-library-laravel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.